bloxa

Checkbox

FREE

Checkbox with an animated check, indeterminate state, and CheckboxField with label, description and card style.

Playground

Change the props and watch the component and its code update live.

Props
Code
import { CheckboxField } from "@/components/ui/checkbox";

<CheckboxField
  label="Weekly digest"
  description="New components every Monday."
/>

Installation

Terminal
npx @bloxa/cli add checkbox
# or: npx shadcn@latest add @bloxa/checkbox

Packages installed automatically: radix-ui

Examples

With label

Select all

The parent shows an indeterminate state while some children are checked.

Cards

API reference

Every component also accepts the props of the element it renders.

Checkbox

PropTypeDefaultDescription
checkedboolean | "indeterminate"—Controlled state.
onCheckedChange(checked) => void—Called when the state changes.

CheckboxField

PropTypeDefaultDescription
labelReactNode—Clickable label.
descriptionReactNode—Description under the label.
cardbooleanfalseRenders the option as a card.