Add a toggle or checkbox to a tab by callingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Footagesus/WindUI/llms.txt
Use this file to discover all available pages before exploring further.
:Toggle({...}). The returned object lets you read and set the current value programmatically.
Parameters
Label displayed next to the control. Defaults to
"Toggle" when omitted.Secondary line of text rendered beneath the title.
Lucide icon name shown inside the toggle knob when the element is on.
Visual style.
"Toggle" renders a sliding pill. "Checkbox" renders a square checkbox with a checkmark icon.Initial state of the control.
Identifier used by the config system to save and restore this element’s value between sessions.
When
true, the control is overlaid with a lock indicator and the callback is suppressed.Custom text shown on the lock overlay. Defaults to
"Locked".Called whenever the value changes. Receives the new boolean state.
Methods
toggle:Set(value: boolean)
toggle:Set(value: boolean)
Programmatically sets the toggle state. The callback fires unless the element is locked.