@burrow-ui/switch
v0.1.7
Published
Toggle switch for Burrow UI (3 sizes × 3 variants × 3 colors, with label / description / loading)
Maintainers
Readme
@burrow-ui/switch
Toggle switch with label / description / loading states.
import {Switch} from "@burrow-ui/switch";
const [on, setOn] = useState(false);
<Switch
checked={on}
onChange={setOn}
label="Notifications"
description="Browser push for trade offers"
color="primary"
/>;Behaves as role="switch" — the visible wrapper is the tab stop, the
hidden <input> carries state. Enter / Space toggle.
label accepts any React node. Pass ariaLabel when using a non-text label
or an unlabeled switch.
