Toggle
[Toggle]{#Toggle data-4search="ui/b/toggle.tsx:Toggle;section"}
The Toggle component is a simple toggle button for boolean audio processor input properties.
Props:
value
: Boolean, the toggle value to be displayed, the values are true or false.
label
: String, label to be displayed inside the toggle button. Defaults to an empty
string (the control renders as a bare nub, via the b-toggle-empty class).
disabled
: Boolean, disables interaction and visually dims the control.
onValueChange
: onValueChange?: (value: boolean) => void — callback invoked with the new
boolean value when the user toggles the control.
Events:
valuechange
: Event emitted whenever the value changes, which is provided as
event.target.value.