Toggle
A two-state on/off button.
Import
tsx
import { Toggle } from "@cooud-ui/ui";
bash
npx cooud-ui add toggle
Examples
API Reference
Generated from the component's exported types.
ToggleProps
Extends ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants>
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "outline" | "default" | — |
size | "sm" | "md" | "lg" | "md" | — |