AlignUI MCP
Componentes

Switch is used to immediately toggle a setting on or off.

Instalación

$npx shadcn@latest add @alignui/switch
@radix-ui/react-switch

Uso

Importación
import * as Switch from '@/components/ui/switch';
Switch.Root

Ejemplos oficiales (4)

switch-demo
switch-disabled
switch-with-label-2
switch-with-label