pixi-silk/ui/modes
SegmentedSwitch and ModeSwitcher: tool mode pickers, including the hold-a-key ring.
import { ModeSwitcher, SegmentedSwitch } from 'pixi-silk/ui/modes';
Classes#
| Class | Description |
|---|---|
| ModeSwitcher | Quick mode switching for editors, the hold-a-key ring of paint and 3D tools. |
| SegmentedSwitch | A pill of choices with a thumb that slides to the selected one, stretching on the way. |
Interfaces#
| Interface | Description |
|---|---|
| ModeSwitcherOptions | Options of ModeSwitcher. |
| ModeSwitcherState | The reactive state of a ModeSwitcher. |
| SegmentedState | The reactive state of a SegmentedSwitch. Write value or enabled to change it. |
| SegmentedSwitchOptions | Options of SegmentedSwitch. |
| SegmentedTheme | Colours of a SegmentedSwitch (any Pixi colour). |
| SegmentOption | One choice of a SegmentedSwitch. |
Variables#
| Variable | Description |
|---|---|
| SEGMENTED_THEME | Dark default theme of SegmentedSwitch. Override single colours with the theme option. |