Switch
A stone lever that clacks across a slot.
Install and use
The first command adds the component and the Mine theme, the second adds this example. Render <Mine> once near your root for the skin, sounds and narrator.
"use client"
import { Switch, SwitchThumb } from "@/components/ui/switch"
function Example() {
return (
<label data-slot="label">
Airplane mode
<Switch>
<SwitchThumb />
</Switch>
</label>
)
}
export { Example }