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.json

Props

PropTypeDefaultDescription
options{ value: string; label: string }[][]The options to display in the toggle.
valuestring""The currently selected value.
onChange(value: string) => void-Callback when an option is selected.