Checkbox
A checkbox allows a user to select multiple items from a list of individual items, or to mark one individual item as selected.
Installation
CLI
Manual
npx hq-kit add checkbox
State
Preview
Code
Label
You can add a label by passing the label
prop wrap it as children
.
<Checkbox label='I Accept Terms and Conditions' />
<Checkbox>I Accept Terms and Conditions</Checkbox>
Description
Preview
Code
Controlled
Preview
Code
{"selected":false}
Validation
Preview
Code