mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
093a458026
* feat: Support label & content style of Desc * test: Update snasphot * docs: fix desc
17 lines
434 B
TypeScript
17 lines
434 B
TypeScript
import * as React from 'react';
|
|
|
|
export interface DescriptionsItemProps {
|
|
prefixCls?: string;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
label?: React.ReactNode;
|
|
labelStyle?: React.CSSProperties;
|
|
contentStyle?: React.CSSProperties;
|
|
children: React.ReactNode;
|
|
span?: number;
|
|
}
|
|
|
|
const DescriptionsItem: React.FC<DescriptionsItemProps> = ({ children }) => children as JSX.Element;
|
|
|
|
export default DescriptionsItem;
|