createToggle
createToggle(
opts):ToggleHandle
Defined in: ui/widgets/toggle.ts:65
Compose a Toggle from a Button (interaction + visual states) plus a
separate child entity driven by isOn for the check-mark visual.
State + flipping live in the UIToggle component and its behavior
system — click, setValue, a binding, or the editor inspector all flip the
indicator and emit change identically.