Presto
GitHub
Getting Started
Packages
View Model
Final Form
REST
Routing
UI
FieldFormatter
FieldWidget
getFormatterForField
InputProps
UiProvider
useUi
Formatters
BooleanFormatter
CharFormatter
ChoiceFormatter
DateFormatter
DateTimeFormatter
ImageFormatter
JsonFormatter
LinkFormatter
NumberFormatter
RangeFormatter
TimeFormatter
UI ANTD
Util
On this page
Usage
Props
Examples
Basic usage
BooleanFormatter
Source
import { BooleanFormatter } from "@prestojs/ui";
BooleanFormatter
(
props
)
Source
Component Props:
Prop
Type
Description
*
props
An object with the properties below
props.blankLabel
ReactNode
props.falseLabel
ReactNode
props.trueLabel
ReactNode
props.value
boolean
|
null
Examples
Javascript
Typescript
Basic usage
Show Code