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.

17 lines (13 loc) 564 B
// TODO: remove this example in the next major version. import React from 'react'; import ItemDisplay from 'terra-clinical-item-display'; const component = () => ( <React.Fragment> <ItemDisplay text="Primary" isDisabled /> <ItemDisplay text="Strong" textStyle="strong" isDisabled /> <ItemDisplay text="Attention" textStyle="attention" isDisabled /> <ItemDisplay text="Secondary" textStyle="secondary" isDisabled /> <ItemDisplay text="Strike-through" textStyle="strikeThrough" isDisabled /> </React.Fragment> ); export default component;