Checkbox
CheckBox Component is use to render a checkbox input in the user interface.
#
UsageCheckBox component has a checkbox
input field and a optional label
which if mentioned is rendered in user interface
#
Code#
Default checkedThe starting value for a check box can also be mentioned in Palette Checkbox by providing a boolean value to the checked prop.
note
checked
prop acts as only a starting value. The checked state is emitted by onChange
prop
#
Code#
Disabled Checkbox#
Code#
APIProp | Type | Possible values | Default Value |
---|---|---|---|
label | string | Any String value | "" |
checked | boolean | true and false | false |
disabled | boolean | true and false | false |
onChange | function | -- | -- |
Built by Akshay 🤙