Reference
Toggle
Toggle, dressed in the paper-and-ink system: a standalone seal that settles into the flat ink fill while pressed on. The parts — Root, Indicator.
Root · Indicator
#Indicator
A styled part — no props of its own; it takes the anatomy's shared styling.
#Root
| Prop | Type | Default | Description |
|---|---|---|---|
defaultPressed | boolean | The default pressed state of the toggle. | |
disabled | boolean | Whether the toggle is disabled. | |
pressed | boolean | The pressed state of the toggle. |
| Event | Payload |
|---|---|
pressedChange | pressed: boolean |
update:pressed | pressed: boolean |