BooleanDisplay

core package3.2.2

Note: All components shown on this site are supported by the Constellation design system. To learn how to configure Theme Cosmos, visit Pega Community.

The BooleanDisplay component displays a boolean value with custom text and fixed Icons.

Usage

The BooleanDisplay component will render Yes or No based on the value received. Those labels are configurable through the component props. The component displays "--" in the case of an undefined value.

Example

Yes

Properties

NameDescriptionDefaultType
classNameAdditional CSS classes.string
falseLabelThe text to be displayed when value is false."No"string
refRef for the wrapping element.Ref<HTMLSpanElement>
trueLabelThe text to be displayed when value is true."Yes"string
valueBoolean valueboolean