mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 04:36:19 +08:00
7b94e0bfb2
* refactor: replace deprecated React.SFC with React.FunctionComponent * refactoring: use typedef FC
15 lines
360 B
TypeScript
15 lines
360 B
TypeScript
import * as React from 'react';
|
|
|
|
export interface DescriptionsItemProps {
|
|
prefixCls?: string;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
label?: React.ReactNode;
|
|
children: React.ReactNode;
|
|
span?: number;
|
|
}
|
|
|
|
const DescriptionsItem: React.FC<DescriptionsItemProps> = ({ children }) => children as JSX.Element;
|
|
|
|
export default DescriptionsItem;
|