import React from 'react'; import { Col } from 'antd'; import styles from './index.less'; import responsive from './responsive'; import { ColProps } from 'antd/es/col'; export interface DescriptionProps extends ColProps { column?: number; key?: string | number; style?: React.CSSProperties; term?: React.ReactNode; } const Description: React.SFC = props => { const { term, column = 3, children, ...restProps } = props; return ( {term &&
{term}
} {children !== null && children !== undefined && (
{children}
)} ); }; export default Description;