BooleanFormatterThis is a React component
SourceThis is a React component
import { BooleanFormatter } from "@prestojs/ui";
BooleanFormatter(props)
Format a boolean for display
Displays truthy value as Yes
, falsy as No
and null/undefined/empty string as blankLabel
(defaults to empty string).
This is the default formatter used for BooleanField and NullableBooleanField.
Parameter | Type | Description | |
---|---|---|---|
props.blankLabel | ReactNode | Rendered when Defaults to empty string | |
props.falseLabel | ReactNode | Rendered when Defaults to | |
props.trueLabel | ReactNode | Rendered when Defaults to | |
props.value | boolean|null | The value to format. When |