| Name | Description | Default | Type |
|---|---|---|---|
className | Additional CSS classes. | | string |
falseLabel | The text to be displayed when value is false. | "No" | string |
ref | Ref for the wrapping element. | | Ref<HTMLSpanElement> |
trueLabel | The text to be displayed when value is true. | "Yes" | string |
value | Boolean value | | boolean |
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.