Skip to content
pixi-silk
GitHub repository
Interface

SegmentOption

import type { SegmentOption } from 'pixi-silk/ui/modes';

One choice of a SegmentedSwitch.

Properties#

PropertyTypeDescriptionDefined in
icon?IconSourceIcon shown instead of label, sized by iconSize.ui/modes.ts:248
idstringValue the switch reports when this segment is selected. Unique within the switch.ui/modes.ts:244
label?stringText shown when there is no icon.ui/modes.ts:246