Select
The shadcn select with a pill trigger and the ChatGPT-style rounded menu, including option descriptions and icons.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { SelectPill } from '@/components/component-kit/items/select-pill';
export function Example() { return ( <SelectPill aria-label="Model" defaultValue="auto" options={[ { value: 'auto', label: 'Auto', description: 'Decides how long to think' }, { value: 'instant', label: 'Instant', description: 'Answers right away' }, { value: 'thinking', label: 'Thinking', description: 'Thinks longer for better answers' }, ]} /> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
options | SelectPillOption[] | — | Options with a value, label and optional description, icon or disabled flag. |
placeholder | string | Select | Shown before a value is chosen. |
size | "sm" | "default" | "lg" | default | Trigger height: 28, 32 or 36px. |
label | ReactNode | — | Optional heading above the options. |