mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
17 lines
438 B
TypeScript
17 lines
438 B
TypeScript
/* eslint-disable jsx-a11y/heading-has-content */
|
|
import * as React from 'react';
|
|
import classNames from 'classnames';
|
|
|
|
export interface SkeletonTitleProps {
|
|
prefixCls?: string;
|
|
className?: string;
|
|
style?: object;
|
|
width?: number | string;
|
|
}
|
|
|
|
const Title = ({ prefixCls, className, width, style }: SkeletonTitleProps) => (
|
|
<h3 className={classNames(prefixCls, className)} style={{ width, ...style }} />
|
|
);
|
|
|
|
export default Title;
|