Checkbox
A checkbox component. This can render a true/value value in multiple ways. Set the type property to determine how it looks visually. types : default, bordered, change-icon, switch-line, switch-box
Installation
Examples
Properties
onChange
(checked: boolean) => void
Called when the checkbox is checked or unchecked by clicking on it
checked
boolean
Get or set the current state of the checkbox
label
string
Any additional text to show next to the checkbox
isValid
boolean
If set to 'false' the checkbox will show in an 'invalid' state - neither true nor false
inputAttr
{ [key: string]: string | boolean }
Any additional html attributes to pass to the underlying input field
type
Determines how the checkbox looks, visually
className
string
additional styles
onChange
Called when the checkbox is checked or unchecked by clicking on it
(checked: boolean) => void
checked
Get or set the current state of the checkbox
boolean
label
Any additional text to show next to the checkbox
string
isValid
If set to 'false' the checkbox will show in an 'invalid' state - neither true nor false
boolean
inputAttr
Any additional html attributes to pass to the underlying input field
{ [key: string]: string | boolean }
type
Determines how the checkbox looks, visually
className
additional styles
string
Last updated