Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

Components

Checkbox

Requirements checklists and consent rows. The check draws on spring; indeterminate shows a partial select-all without inventing a third state.

Preview

1 of 3 requirements met; submit is enabled at 3.

<Field>
  <FieldLabel htmlFor="valid-id">Valid ID submitted</FieldLabel>
  <Checkbox id="valid-id" checked={checked} onCheckedChange={setChecked} />
</Field>

Usage

Independent items in a requirements list or consent row.

Do and don't

  • Do. Pair it with FieldLabel and use indeterminate for partial select-all.
  • Don't. Use it for mutually exclusive choices or immediate settings.

Props

  • checked / defaultChecked / onCheckedChange(next: boolean)
  • indeterminate; shows a dash and reports true on click. Use for a partial select-all.
  • size="default" | "compact"; 16px or 14px box. Omit to follow the surrounding size context; row height comes from that context, not from this prop.

Related

Table for selectable applicant rows, Field for label and error wiring. Focus and selected fills follow the Colors tokens.

← PreviousCardNext →Code Block

Install

npx shadcn@latest add @pilipinas/checkbox

For your coding agent