Props & events
Attributes & behavior classes
Selection state is read from ARIA attributes: role="radiogroup" + role="radio" + aria-checked for single-select, or aria-pressed (no radio roles) for independent toggle buttons.
| Attribute / class | Purpose |
|---|---|
role="radiogroup" / role="radio" | Single-select model — mutually exclusive items |
aria-checked | Marks the selected item in the radio model |
aria-pressed | Used instead of the radio roles for independent toggle buttons |
disabled | On any .segmented-item — dims it and blocks interaction |
Events
flickui.js keeps aria-checked/tabindex in sync across the group and fires one event on selection.
| Event | Description |
|---|---|
flick:change | Fired on the .segmented root when a new item is selected, detail carries the item's id. |