The SwitchField is a type of checkbox that represents on/off values.
View source codeboolean
Whether the SwitchInput should be checked
ReactNode
Content to render as the SwitchInput's label
ChangeEventHandler<HTMLInputElement>
Handler called when the SwitchInput's state changes
string
className for the element
"content" | "parent"
Whether the input should fit the content or the parent. Default to content
Default: contentReactNode
Content to render as the SwitchInput's help text
string
The element's unique identifier
boolean
Whether the input is disabled. Default to false
Default: falsestring
Name of the input element
Default: