segmentedTrack
Draws the track the segments sit in.
import { segmentedTrack } from "@sdxc/ui/styles";Signature
segmentedTrack<Node extends Element = Element>(): UtilityMixin<Node>Returns a css() mixin ready for the track's mix prop.
Examples
<div role="group" aria-label={t("range")} mix={[segmentedTrack()]}>{segments}</div>;Used with it
The events, constants and types its module publishes, each imported from @sdxc/ui/styles too.
Interface
SegmentedItemOptions
Options accepted by segmentedItem.
| Member | Type | Required | Description |
|---|---|---|---|
selected | string | No | Selector, relative to the segment, that matches while it is the chosen one. |
focused | string | No | Selector, relative to the segment, that matches while keyboard focus is on it. |