2019-08-05 18:38:10 +08:00
|
|
|
/* eslint-disable jsx-a11y/heading-has-content */
|
2023-05-06 15:49:37 +08:00
|
|
|
import * as React from 'react';
|
2024-04-08 14:04:08 +08:00
|
|
|
import classNames from 'classnames';
|
2018-08-22 23:34:36 +08:00
|
|
|
|
|
|
|
export interface SkeletonTitleProps {
|
|
|
|
prefixCls?: string;
|
|
|
|
className?: string;
|
2021-01-21 17:16:51 +08:00
|
|
|
style?: React.CSSProperties;
|
2018-08-22 23:34:36 +08:00
|
|
|
width?: number | string;
|
|
|
|
}
|
|
|
|
|
2022-09-27 09:57:36 +08:00
|
|
|
const Title: React.FC<SkeletonTitleProps> = ({ prefixCls, className, width, style }) => (
|
2019-08-05 18:38:10 +08:00
|
|
|
<h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />
|
|
|
|
);
|
2018-08-22 23:34:36 +08:00
|
|
|
|
|
|
|
export default Title;
|