The <luna-switch> component provides toggle switches for binary on/off states with customizable styling.
Paths
/lunadom/components/switch/switch.js Basic States
Sizes
Custom Branding
Customization
default - Label contentchecked - Whether the switch is in the 'on' state.disabled - Whether the switch is disabled.size - The size of the switch. Defaults to 'md'.help - Supplemental help text to display below the label.--luna-switch-width - The width of the switch track.--luna-switch-height - The height of the switch track.--luna-switch-thumb - The diameter of the switch thumb.--luna-switch-bg - The background color of the track when unchecked.--luna-switch-bg-checked - The background color of the track when checked.--luna-switch-thumb-bg - The background color of the thumb.--luna-switch-focus - The color of the focus ring.--luna-switch-muted - The color of the help text.--luna-switch-padding - The distance between the thumb and track edge.--luna-color - The color of the primary label.luna-change - Emitted when the switch state changes.