Checkbox
Checkbox with a label, help text and an indeterminate state.
import
import { Checkbox } from '@joshicodes/cock';States
API
Read out of the component sources at build time, so it matches the version you installed.
Every component also takes class, merged
through tailwind-merge so your utility wins.
Props of Checkbox
| Prop | Type | Default |
|---|---|---|
checked bindable | boolean | false |
indeterminate | boolean | false |
description | string | — |
class | string | — |
Anything else is forwarded to the underlying element, typed as HTMLInputAttributes.
Snippets of Checkbox
| Snippet | Type | Default |
|---|---|---|
children | Snippet | — |