Forms
Toggle Group
A joined row of toggles. Pass a string for one active option or an array for several. Your handler decides the next value.
Group: Forms. Exports: ToggleGroup. shadcn/ui equivalent: Toggle Group (partial parity).
Usage
import { ToggleGroup } from "./halaska-kit";
ToggleGroup props
optionsarray: The choices to offer.valueany: The controlled value.onChange(value) => void: Called with the new value.
Accessibility
- The wrapper has the group role. It takes no label.
- Each option is a native button with aria-pressed, so Tab moves through them and Enter or Space picks.
- There is no arrow-key movement between options.
Known gaps
- No type prop. Single or multiple behaviour is written in your own handler.
- No variants or sizes.
- No disabled state.
- Options are plain strings. Icons are not supported.
Halaska UI · Components · Patterns · Screens · Install