Code

Props

Props
Data Type
Required

value

string

βœ…

className

string

❌

id

string

βœ…

name

string

❌

checked

boolean

❌

indeterminate

boolean

❌

error

boolean

❌

disabled

boolean

❌

onChange

function

❌

Description

This component is basically a Checkbox without the label option and with a simpler internal HTML structures that returns the input and the customized box directly. This component can be useful to build new components and implementing CSS styles based on the input state (checked or not) directly.

Beside those changes, the component is working the same as Checkbox component.

Live Demo

For detailed code usage documentation, see the Storybooks for each framework below.

Last updated