mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
ac5a06027e
This reverts commit ea8ed28209
.
17 lines
461 B
TypeScript
17 lines
461 B
TypeScript
/* eslint-disable jsx-a11y/heading-has-content */
|
|
import classNames from 'classnames';
|
|
import * as React from 'react';
|
|
|
|
export interface SkeletonTitleProps {
|
|
prefixCls?: string;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
width?: number | string;
|
|
}
|
|
|
|
const Title: React.FC<SkeletonTitleProps> = ({ prefixCls, className, width, style }) => (
|
|
<h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />
|
|
);
|
|
|
|
export default Title;
|