Files
Basalt2/docs/references/elements/Switch.md
2025-09-14 10:11:36 +00:00

458 B

Switch

The Switch is a standard Switch element with click handling and state management.

Extends: VisualElement

Properties

Property Type Default Description
checked boolean Whether switch is checked
text string Text to display next to switch
autoSize boolean Whether to automatically size the element to fit switch and text
onBackground number Background color when ON
offBackground number Background color when OFF