Forms
Toggle
A button that stays pressed, for a single on or off option such as a filter.
Group: Forms. Exports: Toggle. shadcn/ui equivalent: Toggle (partial parity).
Usage
import { Toggle } from "./halaska-kit";
Toggle props
pressedboolean:onPressfunction:childrenReactNode: Content.
Accessibility
- Renders a native button, so Enter and Space toggle it.
- The pressed state is set with aria-pressed.
Known gaps
- No outline variant, and one size.
- No disabled state.
Used in
Halaska UI · Components · Patterns · Screens · Install