Checkbox
Checkbox
: used in form interfaces to enable users to select multiple options from a given set. It is a versatile UI element that can be tailored to the specific needs of a form.CheckboxGroup
: useful for managing the checked state of its child Checkbox components and conveniently passing shared style props to eachThese components can be imported as follows:
Examples
Basic Usage
Code
Disabled Checkbox
Code
Custom Color Schemes
Code
Checkbox Sizes
Code
Invalid Checkbox
Examples of use for this prop would be:
Code
Customizing Spacing and Icon
Code
Indeterminate Checkbox
In this component, there are three checkboxes. One parent checkbox and two child checkboxes. The state of the parent checkbox is derived from the states of the child checkboxes. If all children are checked, the parent checkbox will also be checked. If none of the children are checked, the parent will be unchecked. If only some of the children are checked, the parent will be in the indeterminate state.
Code
Checkbox Icon
Code
CheckboxGroup
Code
Hooks
Did you know?
Creative Idea No. 1
Code
Creative Idea No. 2
Code
Creative Idea No. 3
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.