Boolean field
Use the Boolean field for single cell options that can be turned on and off only. Also called 'toggle fields' and 'switch fields'.
Package: @terreno/ui
Categories: Component
Props interface: BooleanFieldProps
Story source: demo/stories/Booleanfield.stories.tsx
Live demo
Props
| Prop | Type | Required | Description |
|---|---|---|---|
onChange | reflection | Yes | |
value | boolean | Yes | |
disabled | boolean | ||
disabledHelperText | string | ||
errorText | string | ||
helperText | string | ||
testID | string | Root test id for the primary interactive element or container. | |
testIDs | FieldTestIDs | ||
title | string | ||
variant | union |