Select
Rich Select
NewA select whose options carry an icon or avatar, a description, a price or role and a badge, as a list or a grid of cards.
npx motionsnack add rich-selectCustomize
<RichSelect />Props
24 properties
| Property | Type | Default | Description |
|---|---|---|---|
| options | RichSelectOption[] | 4 demo packages | The options: { value, label, description?, media? (image URL or icon name: box, sparkles, chart-column, sliders, user, star, rocket, briefcase), meta?, badge?, group?, disabled? }. |
| value | string | - | Controlled value. Leave undefined to let the component manage it. |
| defaultValue | string | '' | Value on first render when uncontrolled. |
| onChange | (value: string, option: RichSelectOption) => void | - | Called with the new value and its option. |
| 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. |
| id | string | generated | Id of the field. |
| className | string | '' | Extra classes on the wrapper. |
| label | string | 'Package' | Label above the field. Empty hides it. |
| placeholder | string | 'Choose a package' | Text in the field while nothing is picked. |
| layout | 'list' | 'cards' | 'list' | Options as rows under each other, or as a two-column grid of small cards. |
| showDescriptionInTrigger | boolean | true | Show the picked option's description under its name in the field. |
| showMeta | boolean | true | Show the meta text (price, role) of each option. |
| helperText | string | 'You can switch packages later.' | Small text under the field. Empty hides it. |
| error | string | '' | Error message. Any text marks the field invalid and replaces the helper text. |
| required | boolean | false | Marks the field as required. |
| disabled | boolean | false | Disables the field. |
| readOnly | boolean | false | Shows the value at full contrast; focusable, but the list never opens. |
| height | number | 56 | Height of the field. 56 because it shows two lines. |
| radius | number | 12 | Corner radius of the field. |
| maxListHeight | number | 320 | Tallest the open list may grow before it scrolls. |
About Rich Select
Rich Select is for choices that need more than a word: a package, a team member, a service or a plan. Every option has an icon tile or a round avatar, a name, a line of description, an optional price or role on the right and a small badge such as Popular, and options can sit under group headings. The picked option shows in the field with its icon and description, and the list opens just below it with a short fade. The layout prop turns the list into a two-column grid of small cards, where the chosen card gets a black or white border and a check mark. It works fully from the keyboard with arrows, Home and End, Enter, Escape and type-to-jump, follows the WAI-ARIA combobox pattern and shares the library's field size and clear focus outline.
What's included
- Icon tile or round avatar per option
- Description, meta text and badge on each option
- Group headings
- List or two-column card layout
- Keyboard navigation with type-to-jump
- Error, required and disabled states
- Light and dark look
- Type
- Animated React select component
- Library
- Components · Select
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-23
- Install
npx motionsnack add rich-select