ortaui

Switch

Pill switch; the thumb slides over 200ms.

Installation#

npx shadcn add @ortaui/switch

Examples#

States#

API reference#

PropTypeDefaultDescription
checked / defaultCheckedboolean-Controlled or uncontrolled state.
onCheckedChange(checked: boolean) => void-Called when toggled.