import{_ as e,a as d,b as a,ag as r}from"./chunks/framework.BcrMLAmg.js";const m=JSON.parse('{"title":"Switch","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Switch.md","filePath":"references/elements/Switch.md","lastUpdated":1757844696000}'),o={name:"references/elements/Switch.md"};function n(i,t,c,h,s,l){return a(),d("div",null,t[0]||(t[0]=[r('
The Switch is a standard Switch element with click handling and state management.
Extends: VisualElement
| 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 |