GSegmentedControl
A segmented control (button group) for selecting one or multiple values from a set. Renders as a <fieldset> with radio or checkbox inputs.
Demo
Single-select example
Multi-select example
API
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
label | string | Yes | ||
visibleLabel | boolean | undefined | No | ||
items | GSegmentedControlItem<T>[] | Yes | ||
inputType | "radio" | "checkbox" | undefined | "radio" | No | |
modelValue | T | T[] | undefined | No |
Slots
| Name | Type | Description |
|---|---|---|
label | { item: GSegmentedControlItem<T>; } |
Events
| Name | Type | Description |
|---|---|---|
update:modelValue | [value: T | T[] | undefined] |