CheckboxField
Use <DpCheckboxField />
whenever you need a user to accept/decline something or turn on/off an option.
Properties
🎨 Color variant
DpCheckbox field value
Determines whether the DpCheckbox is half checked ( - ) for Lists
Change handler, defaults to toggle @isChecked
DpCheckbox field label, can be a string or a react node
Determines whether the DpCheckbox appears at the begining or at the end
Adds a wrapper style for the component Row
Error message
Basic usage
Multi Checkbox Selector with Partially selected main Checkbox
This can be used in large lists as multiselector for the intermediate state
Variants
Leading icon
Label length
States
Complex label
DpCheckbox only
For convenience reason, we also export a simple stateless <DpCheckbox />
component in case you need to build something custom.
🎨 Color variant when the checkbox is checked
Determines whether the DpCheckbox is checked
Determines whether the DpCheckbox is half checked ( - ) for Lists
Disabled
Determines whether the border is red