For the complete documentation index, see llms.txt. This page is also available as Markdown.

Checkbox

Checkbox Props

Name
Type
Default
Description

checked

boolean

false

Defines whether the checkbox input is checked or not

colors

object

Object with Tailwind CSS colors classes

colors.bgCheckedIos

string

'bg-primary'

colors.bgCheckedMaterial

string

'bg-md-light-primary dark:bg-md-dark-primary'

colors.borderCheckedIos

string

'border-primary'

colors.borderCheckedMaterial

string

'border-md-light-primary dark:border-md-dark-primary'

colors.borderIos

string

'border-black border-opacity-30 dark:border-white dark:border-opacity-30'

colors.borderMaterial

string

'border-md-light-outline dark:border-md-dark-outline'

component

string

'label'

Component's HTML Element

defaultChecked

boolean

false

Defines whether the checkbox input is checked or not, for the case if it is uncontrolled component

disabled

boolean

false

Defines whether the checkbox input is disabled

indeterminate

boolean

false

Defines whether the checkbox input is in indeterminate state or not

name

string

Checkbox input name

readonly

boolean

false

Defines whether the checkbox input is readonly

touchRipple

boolean

true

Enables touch ripple effect in Material theme

value

any

Checkbox input value

Checkbox Events

Name
Type
Description

change

function(e)

Event will be triggered when checkbox state changed

Checkboxes List

Checkboxes List is not a separate component, but just a particular case of using List and ListItem components.

Examples

Last updated