Switch
Toggle between 2 states.
Installation
pnpm add @base-ui/react motionExamples
Free, accessible React switch components built with Base UI for toggles, settings panels, and boolean options with on/off states.
Base
Description
Add descriptive text below the switch label.
Display song lyrics while playing.
Disabled
Prevent user interaction with the switch using the disabled prop.
Static
Open and close instantly, without animation.