Behive Tech Registry

Toggle

v0.4.0

A 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.

pnpm add @behivetech/atoms.toggle

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.

Playground
const BasicToggle = () => {
  const [checked, setChecked] = useState(false);
  return <Toggle checked={checked} onCheckedChange={setChecked} />;
};

render(<BasicToggle />);