mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
20 lines
461 B
TypeScript
20 lines
461 B
TypeScript
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> {
|
|
render() {
|
|
const { prefixCls, className, width, style } = this.props;
|
|
|
|
return <h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />;
|
|
}
|
|
}
|
|
|
|
export default Title;
|