Select UI framework
Get Started
Radix UI
AlertApp Store ButtonAspect RatioBadgeBannerBreadcrumbButton GroupButtonCheckboxCommand MenuCompactButtonDialogDrawerDropdown MenuEmptyFancy ButtonFile UploadHintInput OTPInputItemKbdLabelLinkButtonLoaderPopoverProgress BarProgress CircleRadio GroupRatingSelectSeparatorSkeletonSliderSocial ButtonSwitchTagTextareaToggle GroupToggleTooltip
Component switch-basic not found in registry.
Component switch-states not found in registry.
Component switch-settings not found in registry.
Usage
import { Switch } from "@/registry/radix-ui/ui/switch"
export default function SwitchExample() {
return <Switch />
}Examples
Basic Switch
A simple switch component that toggles between on and off states automatically.