Skip to content
pixi-silk
GitHub repository
Interface

ModeSwitcherState

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

The reactive state of a ModeSwitcher.

Properties#

PropertyTypeDescriptionDefined in
modeSignal<string>Current mode id.ui/modes.ts:43
previousSignal<string | null>Mode before the current one, the target of a quick tap.ui/modes.ts:45
recentSignal<readonly string[]>Mode ids, most recently used first.ui/modes.ts:47