ant-design/components/skeleton/Title.tsx
叶枫 502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00

17 lines
461 B
TypeScript

/* eslint-disable jsx-a11y/heading-has-content */
import * as React from 'react';
import classNames from 'classnames';
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;