SpringSelect
A select dropdown whose menu follows the trigger with a tiny spring. The chevron rotates a hair past 180° before settling, and the panel slides down with a subtle overshoot.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/spring-select
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| options | SpringSelectOption[] | [] | Array of options with value, label, optional description, and disabled |
| value | string | undefined | Controlled value |
| defaultValue | string | undefined | Initial value (uncontrolled) |
| placeholder | string | 'Select…' | Placeholder text when no value is selected |
| onChange | (value: string) => void | undefined | Called when a new value is selected |
| label | string | undefined | Visible label rendered above the trigger |
| disabled | boolean | false | Prevents interaction |
| error | string | undefined | Error message; presence triggers danger styling |