DatDot vanilla js UI component
{name = 'toggle', text, icons = [], state = default_state, theme = ``}
toggle.help()
returns opts & the defaults for toggle component
help
requests info on current stateupdate
updates any of the data sent{ text, icons = [], sheets }
parent
help
sends info on current stateclick
// sends info about the state (data.pressed true/false)