Option Toggle
An option toggle with smooth animation.
Installation
1
Run the following Command
>_npx shadcn@latest add https://minimal-ui-eta.vercel.app/r/option-toggle.jsonProps
| Prop | Type | Default | Description |
|---|---|---|---|
| options | { value: string; label: string }[] | [] | The options to display in the toggle. |
| value | string | "" | The currently selected value. |
| onChange | (value: string) => void | - | Callback when an option is selected. |