Toggle

An on/off switch for a setting that takes effect immediately.

Consumer provides: the state and the label of the row it sits in (the row is the target).

Rules

Compose

M3 Switch with thumbContent = { if (checked) Icon(check) }, colours from the tokens, no elevation.

In the app

InkToggle implements these rules.

Preview

On · off