Switch
A spring-animated toggle switch with colors, sizes, shapes, and label support.
uiNew Releaseclass-variance-authorityframer-motion
Installation
$npx futureuikit add switch
Import
import { Switch } from "@/components/ui/switch"
Color Theme
Named Keys & Props
Pass these exact named keys as props on <Switch />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)shapeCorner shape"default""square""rounded""sharp"sizeComponent size"sm""md""lg"Usage Example
A basic implementation example to get you started.
Example Implementation
import { Switch } from"@/components/ui/switch";
export default function Example() {
return <Switch />;
}Features
Key capabilities and highlights.
Key Capabilities
- ◆A spring-animated toggle switch with colors, sizes, shapes, and label support.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run 'npx futureuikit add switch'.
- ◆Import: 'import { Switch } from "@/components/ui/switch";'