Skip to content
Docs
Open Promoeyes

input-toggle

UI item · inside ui / ui3duisset 2× in templates and rigs

An on / off switch field drawn static on a UI stage: a small label above a box holding the state word and a pill switch, knob right when on.

input-toggle(accent=#ffffff border=#ffffff fill=#ffffff)

Attributes

accentcolour #rrggbbColour of the switch's track when on.2×
bordercolour #rrggbbOutline colour of the box.2×
fillcolour #rrggbbFill of the box (default white).2×
hnumberHeight with the label band (default 64).2×
inkcolour #rrggbbColour of the state word.2×
labeltextThe small caption above the field.2×
mutedcolour #rrggbbColour of the label.2×
radiusnumberCorner radius of the box (default 12).2×
valuetrue / false`true` draws it on (knob right, track in `accent`); otherwise off.2×
valueOfftextWord shown when off (default `Off`).2×
valueOntextWord shown when on (default `On`).2×
wnumberField width in stage units (default 280).2×

Where it goes

Written under