Skip to content
pixi-silk
GitHub repository
Interface

SegmentedState

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

The reactive state of a SegmentedSwitch. Write value or enabled to change it.

Properties#

PropertyTypeDescriptionDefined in
enabledSignal<boolean>False ignores input. Default true.ui/modes.ts:305
valueSignal<string>Selected segment id. Setting it slides the thumb and calls onChange.ui/modes.ts:303