OptionalcheckedControlled checked state.
OptionalcharactersCharacter tokens used by the pure renderer.
OptionaldefaultInitial checked state for uncontrolled usage.
OptionaldisabledWhether focus and toggling are unavailable.
Non-empty, single-line switch label.
OptionaloffText rendered for the off state.
OptionalonCalled after keyboard, mouse, or imperative toggling requests a state change.
OptionalonText rendered for the on state.
Stateful data accepted by the Blessed switchControl adapter.