PureKit UI logoPureKit UI

Checkbox

Checkbox input component for boolean values.

Basic

Simple checkbox

Colors

Different color variants

Sizes

Checkbox sizes

Indeterminate

Indeterminate state

Main Props

NameTypeDefaultDescription
id
string-HTML id attribute
checked
booleanfalseChecked state
disabledRipple
booleanfalseDisable ripple effect
label
string''Label text
disabled
booleanfalseDisable the checkbox
color
Color'blue'Color variant
name
string-Input name
size
'sm' | 'md' | 'lg''md'Checkbox size
indeterminate
booleanfalseIndeterminate state
icon
React.ReactNode-Custom icon
rippleColor
'dark' | 'light''dark'Ripple color
onChange
(e: React.ChangeEvent<HTMLInputElement>) => void-Change handler

Class Props

NameTypeDefaultDescription
classNameRoot
string-Class for root element
classNameWrapperCheckbox
string-Class for wrapper
classNameCheckbox
string-Class for input element
classNameIconCheckbox
string-Class for default icon
classNameLabel
string-Class for label
classNameIndeterminate
string-Class for indeterminate icon
classNameIcon
string-Class for custom icon