You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
595 B
28 lines
595 B
import * as React from 'react';
|
|
import classNames from 'classnames';
|
|
|
|
export interface SkeletonTitleProps {
|
|
prefixCls?: string;
|
|
className?: string;
|
|
style?: object;
|
|
width?: number | string;
|
|
}
|
|
|
|
class Title extends React.Component<SkeletonTitleProps, any> {
|
|
static defaultProps: Partial<SkeletonTitleProps> = {
|
|
prefixCls: 'ant-skeleton-title',
|
|
};
|
|
|
|
render() {
|
|
const { prefixCls, className, width, style } = this.props;
|
|
|
|
return (
|
|
<h3
|
|
className={classNames(prefixCls, className)}
|
|
style={{ width, ...style }}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Title;
|
|
|