SegmentOption
import type { SegmentOption } from 'pixi-silk/ui/modes';
One choice of a SegmentedSwitch.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
icon? | IconSource | Icon shown instead of label, sized by iconSize. | ui/modes.ts:248 |
id | string | Value the switch reports when this segment is selected. Unique within the switch. | ui/modes.ts:244 |
label? | string | Text shown when there is no icon. | ui/modes.ts:246 |