Skip to main content
Version: 57.2.0

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

PropTypeRequiredDescription
onChangereflectionYes
valuebooleanYes
disabledboolean
disabledHelperTextstring
errorTextstring
helperTextstring
testIDstringRoot test id for the primary interactive element or container.
testIDsFieldTestIDs
titlestring
variantunion