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 / classPurpose
role="radiogroup" / role="radio"Single-select model — mutually exclusive items
aria-checkedMarks the selected item in the radio model
aria-pressedUsed instead of the radio roles for independent toggle buttons
disabledOn 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.

EventDescription
flick:changeFired on the .segmented root when a new item is selected, detail carries the item's id.