Navigation
Stepper
The Stepper Component visually guides users through multi-step processes, such as wizards or forms, displaying their current position and remaining steps.
Basic example
Static
A static stepper usage.
-
1Step
-
2Step
-
3Step
Vertical
Vertical navigation example.
-
1Step
-
2Step
-
3Step
Linear
Linear navigation example.
-
1 Step
-
2 Step
-
3 Step
Types
Outlined
Outlined stepper example.
-
1Step
-
2Step
-
3Step
Solid
Solid stepper example.
-
1Step
-
2Step
-
3Step
Shapes
Rounded
Use the `rounded-*` utility class to make stepper rounded. The default shape of the stepper but can be altered by using TailwindCSS <a href="https://tailwindcss.com/docs/border-radius" target="_blank" class="link link-primary">Border Radius</a> utility classes.
-
1Step
-
2Step
-
3Step
Circle (Default)
This is the default stepper.
-
1Step
-
2Step
-
3Step
Illustrations
Alignment center
Navigation align centered.
-
1Step
-
2Step
-
3Step
Utilizing icons and avatars
You can also include extra elements like an avatar image or icons.
-
Step
-
Step
-
Loading... Step
Responsive
Static
This stepper navigation example aligns horizontally for screen sizes above the `md` breakpoint and vertically for smaller screen sizes.
-
1Step
This is a description text.
-
2Step
This is a description text.
-
3Step
This is a description text.
Linear
The linear example is horizontally aligned for resolutions larger than or equal to 'md' and vertically aligned for resolutions below that.
-
1 Step
-
2 Step
-
3 Step
Dynamic form
Dynamic linear
An example of a dynamic stepper that walks users through the steps of a task.
- 1 Step
- 2 Step
- 3 Step
First content
Non-linear
Featuring a "Complete Step" button, the Stepper component can be enhanced with `"mode": "non-linear"` in the `data-stepper` attribute, allowing users to click on navigation items to switch steps. The `data-stepper-complete-step-btn` attribute is used for the complete button.
- 1 Step
- 2 Step
- 3 Step
First content
Skip
Example of a Step with a Skip Button: To incorporate a skip button, utilize `data-stepper-skip-btn` to designate the button that allows skipping the step. Specify the index for this button by including `data-stepper-nav-item='{ "isOptional": true }'`.
- 1 Step
- 2 Step
- 3 Step
First content
Active
Active stepper example.
- 1 Step
- 2 Step
- 3 Step
First content
Success
Example of a Successful Stepper: This example demonstrates what a properly completed stepper should look like.
- 1 Step
- 2 Step
- 3 Step
First content
Error
Error stepper example.
- 1 Step
- 2 Step
- 3 Step
First content
Destroy/Reinitialize
The `destroy` <a href="#destroy-method" class="link link-primary">method</a> is provided to facilitate the destruction of a stepper element.
- 1 Step
- 2 Step
- 3 Step
First content
Class referenceThe component, style, color, state, size and modifier classes available for this component.
| Class | Type | Description |
|---|---|---|
stepper-active:{tw-utility-class} | variant | Refines the appearance of the active step. |
stepper-success:{tw-utility-class} | variant | Adjusts the visual representation of a completed step. |
stepper-disabled:{tw-utility-class} | variant | Alters the "back" button appearance when the first step is active. |
stepper-skipped:{tw-utility-class} | variant | Modifies the appearance of a step that has been skipped. |
stepper-error:{tw-utility-class} | variant | Adjusts the visual representation of a step with an error. Requires manual addition. |
stepper-process:{tw-utility-class} | variant | Modifies the appearance of a step that is currently being processed. Requires manual addition. |
stepper-completed:{tw-utility-class} | variant | Refines the appearance of all steps that have been completed. |