SegmentedState
import type { SegmentedState } from 'pixi-silk/ui/modes';
The reactive state of a SegmentedSwitch. Write value or enabled to change it.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
enabled | Signal<boolean> | False ignores input. Default true. | ui/modes.ts:305 |
value | Signal<string> | Selected segment id. Setting it slides the thumb and calls onChange. | ui/modes.ts:303 |