How to use the terra-clinical-item-display.Comment function in terra-clinical-item-display

To help you get started, we’ve selected a few terra-clinical-item-display examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-clinical / packages / terra-clinical-item-view / src / ItemView.jsx View on Github external
<div>
      {renderAccessory(startAccessory, reserveStartAccessorySpace, accessoryAlignment, 'start')}
      <div>
        {renderRows(displays, layout, textEmphasis)}
        {comment}
      </div>
      {renderAccessory(endAccessory, false, accessoryAlignment, 'end')}
    </div>
  );
};

ItemView.propTypes = propTypes;
ItemView.defaultProps = defaultProps;

ItemView.Display = ItemDisplay;
ItemView.Comment = ItemDisplay.Comment;

export default ItemView;
export {
  Layouts,
  TextEmphasisTypes,
  AccessoryAlignments,
};

terra-clinical-item-display

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.

Apache-2.0
Latest version published 3 months ago

Package Health Score

82 / 100
Full package analysis

Popular terra-clinical-item-display functions