Skip to content
bahtuiv0.6.0

<baht-steps>

Wizard progress indicator: numbered markers with labels, the current one highlighted, done ones checked.

Horizontal

<baht-steps current="1"></baht-steps>

<script>
  const el = document.querySelector('baht-steps');
  el.steps = [
    "Request",
    "Manager approval",
    "Fulfilment",
    "Review"
  ];
</script>

Sidebar variant

<baht-workflow show-steps> renders this automatically from its visible forms.

<baht-steps variant="sidebar" current="2"></baht-steps>

<script>
  const el = document.querySelector('baht-steps');
  el.steps = [
    "Request",
    "Manager approval",
    "Fulfilment",
    "Review"
  ];
</script>
NameTypeDefaultDescription
stepsJSstring[][]Labels in order
currentnumber0Zero-based active index
variant'default' | 'sidebar''default'Horizontal strip or vertical rail (default | sidebar)