HeroUI v3 Switch — toggle with sizes, label position, icons, descriptions, disabled/selected states, groups, render props and custom styles.
import { Switch } from "@/components/ui/heroui-switch" export default function LabelPosition() { return ( <div className="flex flex-col gap-4"> <Switch> <Switch.Content> <Switch.Control> <Switch.Thumb /> </Switch.Control> Label after </Switch.Content> </Switch> <Switch> <Switch.Content> Label before <Switch.Control> <Switch.Thumb /> </Switch.Control> </Switch.Content> </Switch> </div> ) }