ant-design/components/skeleton/Title.tsx
zombieJ 1a0a06fca9
ConfigProvider support prefixCls (#13389)
Basic support prefixCls.
2018-12-05 19:12:18 +08:00

25 lines
497 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;