UNPKG

terra-clinical-item-view

Version:

The Item View component allows displays to be organized into rows and column and themed, while providing means to add accessory elements and a comment.

22 lines (18 loc) 754 B
import React from 'react'; import classNames from 'classnames/bind'; import ItemView from '../../../ItemView'; import styles from './ItemViewCommon.test.module.scss'; const cx = classNames.bind(styles); const DefaultItemView = () => ( <div> <p>Given null displays prop, the div is created, but there is no content to show. The ItemView is outlined below.</p> <div className={cx('itemview-wrapper')}> <ItemView id="ItemView" displays={null} /> </div> <p>Given null display item, the div is created, but there is no content to show. The ItemView is outlined below.</p> <div className={cx('itemview-wrapper')}> <ItemView id="ItemViewNullInput" displays={[null]} /> </div> </div> ); export default DefaultItemView;