ant-design/components/skeleton/Title.tsx

17 lines
451 B
TypeScript
Raw Normal View History

2019-08-05 18:38:10 +08:00
/* eslint-disable jsx-a11y/heading-has-content */
import classNames from 'classnames';
2022-06-22 14:57:09 +08:00
import * as React from 'react';
export interface SkeletonTitleProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
width?: number | string;
}
2019-08-05 18:38:10 +08:00
const Title = ({ prefixCls, className, width, style }: SkeletonTitleProps) => (
<h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />
);
export default Title;