UNPKG

@douyinfe/semi-ui

Version:

A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.

24 lines (23 loc) 905 B
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import '@douyinfe/semi-foundation/lib/cjs/descriptions/descriptions.css'; import { DescriptionsContextValue } from './descriptions-context'; export interface DescriptionsItemProps { hidden?: boolean; className?: string; children?: React.ReactNode | (() => React.ReactNode); style?: React.CSSProperties; itemKey?: React.ReactNode; span?: number; } export default class Item extends PureComponent<DescriptionsItemProps> { static propTypes: { itemKey: PropTypes.Requireable<PropTypes.ReactNodeLike>; hidden: PropTypes.Requireable<boolean>; className: PropTypes.Requireable<string>; style: PropTypes.Requireable<object>; }; static contextType: React.Context<DescriptionsContextValue>; context: DescriptionsContextValue; render(): React.JSX.Element; }