--- title: Switch description: A control that indicates whether a setting is on or off. author: name: imskyleen url: https://github.com/imskyleen --- ## Installation ## Usage ```tsx ``` ## Props
### Animate UI Props #### Switch ", required: false, }, leftIcon: { description: 'The icon to display on the left of the switch', type: 'React.ReactNode', required: false, }, rightIcon: { description: 'The icon to display on the right of the switch', type: 'React.ReactNode', required: false, }, thumbIcon: { description: 'The icon to display on the thumb of the switch', type: 'React.ReactNode', required: false, }, }} /> ## Credits - We use [Base UI](https://base-ui.com/react/components/switch) for the switch component. - We take our inspiration from [Shadcn UI](https://ui.shadcn.com/docs/components/switch) for the switch style.