Toggle Group
A toggle group is a segmented control for choosing exactly one value from a short list of mutually exclusive options.
Overview
Pass options (array of { value, label?, disabled? }) and bind modelValue as a single selected value.
catnip-toggle-group also provides:
- Field label (prop or
labelslot), required / optional markers,infotooltip supporting-textbelow the group (validation, hints)variant—default(white selected pill) oraccent(brand selected pill)size—morlsegment height (s/mfield label →msegments;l→lsegments)role="radiogroup"witharia-labelledby/aria-describedbywiring
Use catnip-radio-group when each option needs a full radio row with supporting text. Use catnip-tabs for navigation between views or panels.
Live example
Related
- Radio Group — Overview — labelled single-select with radio rows
- Tabs — Overview — navigation tabs
- Toggle — Overview — single on/off switch