Back to Twenty

Step Bar

packages/twenty-docs/twenty-ui/navigation/step-bar.mdx

2.2.0814 B
Original Source
<Frame> </Frame>

Displays progress through a sequence of numbered steps by highlighting the active step. It renders a container with steps, each represented by the Step component.

<Tabs> <Tab title="Usage">
jsx
import { StepBar } from "@/ui/navigation/step-bar/components/StepBar";

export const MyComponent = () => {
  return (
    <StepBar activeStep={2}>
      <StepBar.Step>Step 1</StepBar.Step>
      <StepBar.Step>Step 2</StepBar.Step>
      <StepBar.Step>Step 3</StepBar.Step>
    </StepBar>
  );
};
</Tab> <Tab title="Props">
PropsTypeDescription
activeStepnumberThe index of the currently active step. This determines which step should be visually highlighted
</Tab> </Tabs>