ant-design/components/skeleton/Title.tsx

20 lines
461 B
TypeScript
Raw Normal View History

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;
2018-12-07 20:02:01 +08:00
return <h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />;
}
}
export default Title;