-- DreamStack Tabs Component
-- Tab switcher with active state indicator

export component Tabs(activeTab, onTab1, onTab2, onTab3, label1, label2, label3) =
  row [
    button label1 { click: onTab1, variant: "primary" }
    button label2 { click: onTab2, variant: "secondary" }
    when label3 -> button label3 { click: onTab3, variant: "secondary" }
  ] { variant: "tabs" }
