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.
18 lines (15 loc) • 802 B
JSX
import React from 'react';
import ItemDisplay from 'terra-clinical-item-display';
const component = () => (
<React.Fragment>
<ItemDisplay text="Attention" textStyle="attention" textStyleMeaning="Important" />
<p>Screen reader reads: “Important”, “Attention”, “Important End”</p>
<br />
<ItemDisplay text="Strike-through (Default)" textStyle="strikeThrough" />
<p>Screen reader reads: “Deletion”, “Strike-through (Default)”, “Deletion End”</p>
<br />
<ItemDisplay text="Strike-through" textStyle="strikeThrough" textStyleMeaning="Update" />
<p>Screen reader reads: “Update”, “Strike-through”, “Update End”</p>
</React.Fragment>
);
export default component;