UNPKG

terra-clinical-item-display

Version:

The Item Display component creates an display for text and an optional graphic. The Comment subcomponent creates a display for text with a comment icon.

15 lines (12 loc) 452 B
import React from 'react'; import ItemDisplay from 'terra-clinical-item-display'; const component = () => ( <React.Fragment> <ItemDisplay text="Primary" /> <ItemDisplay text="Strong" textStyle="strong" /> <ItemDisplay text="Attention" textStyle="attention" /> <ItemDisplay text="Secondary" textStyle="secondary" /> <ItemDisplay text="Strike-through" textStyle="strikeThrough" /> </React.Fragment> ); export default component;