ant-design/components/skeleton/Title.tsx

18 lines
517 B
TypeScript
Raw Normal View History

2019-08-05 18:38:10 +08:00
/* 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;
}
2022-09-27 09:57:36 +08:00
const Title: React.FC<SkeletonTitleProps> = ({ prefixCls, className, width, style }) => (
// biome-ignore lint/a11y/useHeadingContent: HOC here
2019-08-05 18:38:10 +08:00
<h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />
);
export default Title;