Checkbox
Chip Checkbox
NewOptions as pill chips that fill in and grow a check mark when picked.
npx motionsnack add chip-checkboxCustomize
Error Colour
<ChipCheckbox />Props
17 properties
| Property | Type | Default | Description |
|---|---|---|---|
| options | { value: string; label: string; icon?: string; disabled?: boolean }[] | 8 demo interests | The chips. Icons: sparkle, layout, play, cube, camera, type, search, pen or none. |
| value | string[] | - | Picked values (controlled). |
| defaultValue | string[] | ['motion', 'typography'] | Values picked at first render (uncontrolled). |
| onChange | (value: string[]) => void | - | Called with all picked values whenever a chip is toggled. |
| name | string | - | Name of the checkboxes, sent with a form. |
| id | string | generated | Id prefix of the checkboxes. |
| size | 'sm' | 'md' | 'md' | Deprecated: chips are 28 only; both values render the 28 chip. |
| className | string | '' | Extra classes on the wrapper. |
| label | string | 'Interests' | Legend above the chips. Empty hides it. |
| description | string | 'Pick a few, we will tailor the newsletter.' | Line under the legend. Empty hides it. |
| maxSelected | number | 0 | Most chips that can be on. 0 means no limit. |
| limitText | string | 'You can pick up to {n}.' | Text shown when the limit is reached. {n} is the number. |
| helperText | string | '' | Small text under the chips. Empty hides it. |
| error | string | '' | Error message. Any text colours the unpicked chips' edge and replaces the helper text. |
| errorColor | string | '' | Overrides the per-theme error colour. Empty uses the theme pair. |
| required | boolean | false | Marks the group as required. |
| disabled | boolean | false | Disables every chip. |
About Chip Checkbox
Chip Checkbox turns a multiple choice into a row of pills: interests, topics, skills or filters. Each chip can carry a small icon; a picked chip fills black or white and a check mark slides in at its left edge, the chip widening smoothly instead of jumping while the tick draws itself. The chips wrap onto as many lines as they need, come in two sizes and can be capped with a limit that greys out the rest and says why. Every chip is a real checkbox underneath, so keyboard, forms and screen readers work as usual, and the group shares the library's legend, description, helper text, error state and soft focus outline.
What's included
- Pill chips with optional icons
- Check that slides in as the chip grows
- Small and medium sizes, wrapping rows
- Optional limit with a note
- Legend, description, helper text and error state
- Real checkboxes: keyboard, forms, screen readers
- Light and dark look
- Type
- Animated React checkbox component
- Library
- Components · Checkbox
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-23
- Install
npx motionsnack add chip-checkbox