Skip to content
Forms

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

PropTypeDefault
checked bindable
booleanfalse
indeterminate
booleanfalse
description
string—
class
string—

Anything else is forwarded to the underlying element, typed as HTMLInputAttributes.

Snippets of Checkbox

SnippetTypeDefault
children
Snippet—

See also

cock. Yes, it stands for core component kit. We checked twice.