The application's own Segmented: base for every use, presets chosen at
a use with preset, and the call over both. mixins concatenate in that
order (Segmented.fluid goes in base); any other option given at the
call replaces the preset's.
What moves the indicator and highlight, on the group: the pressed
option is measured (--fk-segmented-chosen-*) and one highlight follows
the pointer to the nearest option (--fk-segmented-hover-*), born at the
pressed one. Pass them beside the style; until they run, the pressed option
fills itself.
A segmented control: one group of options. A single choice, the
default, is the APG's radio group: role="radiogroup" of role="radio"
options with aria-checked, one tab stop (the chosen option, else the first
enabled), and the arrows, Home and End moving the choice and focus together.
With multiple it is shadcn's and Zag's toggle group: a role="group" of
buttons with aria-pressed, any number on, each filling itself (draw it
without fluid, whose pill marks one), every one a tab stop.
indicator and highlight, drawn first in the group, are the chosen
option's sliding pill and the hover that follows the pointer, which fluid
moves. hiddenInput carries the form value when the group has a name.
The pressed values after value is pressed. A single control keeps one
pressed, so pressing the pressed one changes nothing unless it is
optional; with multiple, a press turns its option on or off.
A segmented control in one call: the options in a group, each label also in
data-label so turning semibold when chosen moves nothing, after the
indicator and highlight fluid moves. An option with an icon draws it and
its words in a content row and is marked data-icon; one drawn iconOnly
is named by its label.