Toggle
v0.4.0A bare toggle/switch control (built on Radix's `Switch`) — the Radix switch button is this component's own root element. It has no built-in label/hint/error; wrap it in `FormField` for that chrome.
Edit the code and the preview updates as you type. Every registry export is in scope — Toggle from this package, plus React hooks and every other component in the registry.
const BasicToggle = () => { const [checked, setChecked] = useState(false); return <Toggle checked={checked} onCheckedChange={setChecked} />; }; render(<BasicToggle />);