Select
Multi Select
NewA select for picking several options, with checkboxes in the list and the picks shown as removable chips in the field.
npx motionsnack add multi-select-inputCustomize
<MultiSelectInput />Props
26 properties
| Property | Type | Default | Description |
|---|---|---|---|
| options | { value, label, description?, group?, disabled? }[] | 10 skills | Everything the visitor can pick. Options with the same group are listed together under its name. |
| value | string[] | - | Controlled picked values. Leave undefined to let the component manage them. |
| defaultValue | string[] | ['branding', 'motion-design'] | Picked values on first render when uncontrolled. |
| onChange | (value: string[], options?: MultiSelectOption[]) => void | - | Called with the picked values and their options on every change. |
| open | boolean | - | Controlled open state of the list. Leave undefined to let the component manage it. |
| defaultOpen | boolean | false | Open state on first render when uncontrolled. |
| onOpenChange | (open: boolean) => void | - | Called whenever the user opens or closes the list. |
| errorColor | string | - | Overrides the error colour on both themes (keep 4.5 : 1). Left out, the theme pair #dc2626 / #ef4444 is used. |
| name | string | - | Name submitted with a form; the values go as one comma-separated value. |
| id | string | generated | Id of the field. |
| className | string | '' | Extra classes on the wrapper. |
| label | string | 'Skills' | Label above the field. Empty hides it. |
| placeholder | string | 'Pick your skills' | Text in the empty field. |
| helperText | string | 'Pick everything you offer.' | Small text under the field. Empty hides it. |
| error | string | '' | Error message. Any text marks the field invalid and replaces the helper text. |
| maxVisibleChips | number | 3 | Chips shown before the rest collapse into +N more. 0 shows them all. |
| maxSelected | number | 0 | Most options that can be picked. 0 means no limit. |
| showBulkActions | boolean | true | Show Select all and Clear at the top of the list. |
| selectAllLabel | string | 'Select all' | Text of the select-all button. |
| clearLabel | string | 'Clear' | Text of the clear button. |
| limitText | string | 'You can pick up to {n}.' | Note in the list once the limit is reached. {n} is the limit. |
| moreText | string | '+{n} more' | Text of the chip that stands for the hidden ones. {n} is how many. |
| required | boolean | false | Marks the field as required. |
| disabled | boolean | false | Disables the field. |
| height | number | 48 | Smallest height of the field. It grows when the chips wrap. |
| radius | number | 12 | Corner radius of the field. |
About Multi Select
Multi Select is for questions with more than one answer: skills, services, topics or days. The field shows every pick as a small chip with a remove button, and after a number you choose the rest fold into a +N more chip so the field stays tidy. The list opens below the field with a short fade, every option has a checkbox whose tick draws itself in, and a header row counts the picks and offers Select all and Clear. A limit on the number of picks greys out the rest with a short note, options can come in groups and carry a second line, and the whole list works from the keyboard: arrows, Space, Shift with arrows to pick a run, Ctrl or Cmd with A for everything, typing to jump and Escape to close. It shares the library's field size, soft focus outline and error state, and submits the picks as one comma-separated value.
What's included
- Picks shown as removable chips with +N more
- Checkboxes with a tick that draws itself
- Select all and Clear in the list header
- Optional limit with a note
- Groups and second lines on options
- Full keyboard support: arrows, Space, Shift, Ctrl/Cmd+A, typeahead
- Light and dark look
- Type
- Animated React select component
- Library
- Components · Select
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-23