-- DreamStack Toggle Component
-- On/off switch with label

export component Toggle(value, label, onChange) =
  row [
    when label -> text label
    button "Toggle" { click: onChange, variant: "toggle" }
  ]
