Skip to content
bahtuiv0.18.8

<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>

variant="chevron" joins the steps into one strip that scrolls sideways when it does not fit, for the states of a record. Add show-done to tick the steps before the current one.

NameTypeDefaultDescription
stepsJSstring[][]Labels in order
currentnumber0Zero-based active index
variant'default' | 'sidebar' | 'chevron''default'Horizontal strip, vertical rail or joined states (default | sidebar | chevron)
show-donebooleanfalsechevron: tick the steps before the current one