The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
v0.2.47Beta

Search

Stepper

Source

A component that displays progress through a sequence of logical and numbered steps.

1

Cart

2

Shipping

3

Payment

Usage

Import the Stepper component and its subcomponents from @bun-ui/react:

import { Stepper, Step, StepLabel } from "@bun-ui/react"
<Stepper activeStep={1}>
  <Step>
    <StepLabel>Step 1</StepLabel>
  </Step>
  <Step>
    <StepLabel>Step 2</StepLabel>
  </Step>
  <Step>
    <StepLabel>Step 3</StepLabel>
  </Step>
</Stepper>

Examples

Basic Stepper

A simple stepper with default styling. Use the activeStep prop to control the current step.

1

Cart

2

Shipping

3

Payment

Custom Connector

Customize the connector between steps using the connector prop. This example shows how to create a gradient connector that changes color based on the step state.

Application

2

Interview

3

Offer

Custom Styling

Customize the appearance of each step using the classes prop in each subcomponent.

1

Account

2

Profile

3

Preferences