Components/Toggle Group

Toggle Group

Set of two-state buttons that share state — single-select or multi-select.


Installation

npx ajaxui add toggle-group

Props

PropTypeDefaultDescription
type"single" | "multiple""single"
valuestring | string[]Controlled value.
defaultValuestring | string[]
onValueChange(value: string | string[]) => void
variant"default" | "outline""default"
size"sm" | "md" | "lg""md"