# Stepper Stepper visually represents a multi-step process, guiding users through a sequence of actions. It enhances usability by breaking down complex workflows into manageable steps. **Category:** Components **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-stepper--stepper-horizontal ## Variants documented in Storybook - Stepper Horizontal: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-stepper--stepper-horizontal - Stepper Vertical: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-stepper--stepper-vertical - Stepper Compact: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-stepper--stepper-compact ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Stepper. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Compact — Top actions HTML: ```html
Stepper visually represents a multi-step process, guiding users through a sequence of actions. It enhances usability by breaking down complex workflows into manageable steps.
A focused view of the Horizontal, Vertical, and Compact Stepper families.
Quickly copy the classes used by the showcased Stepper variants.
|
Main stepper wrapper
ux4g-stepper
|
|
Horizontal layout
ux4g-stepper-horizontal
|
|
Vertical layout
ux4g-stepper-vertical
|
|
Small horizontal size
ux4g-stepper-small
|
|
Small vertical size
ux4g-stepper-s
|
|
Completed step connector state
ux4g-stepper-done
|
|
Completed step styling
ux4g-stepper-completed
|
|
Pending step styling
ux4g-stepper-step-pending
|
|
Warning icon treatment
ux4g-stepper-warning-icon
|
|
Filled bottom line progress
ux4g-stepper-bottom-line-fill
|
|
Compact progress wrapper
ux4g-stepper-progress
|
|
Segmented progress track
ux4g-stepper-progress-track
|
|
Previous or next action
ux4g-stepper-progress-btn
|
Stepper visually represents a multi-step process, guiding users through a sequence of actions. It enhances usability by breaking down complex workflows into manageable steps.
A focused view of the Horizontal, Vertical, and Compact Stepper families.
Quickly copy the classes used by the showcased Stepper variants.
|
Main stepper wrapper
ux4g-stepper
|
|
Horizontal layout
ux4g-stepper-horizontal
|
|
Vertical layout
ux4g-stepper-vertical
|
|
Small horizontal size
ux4g-stepper-small
|
|
Small vertical size
ux4g-stepper-s
|
|
Completed step connector state
ux4g-stepper-done
|
|
Completed step styling
ux4g-stepper-completed
|
|
Pending step styling
ux4g-stepper-step-pending
|
|
Warning icon treatment
ux4g-stepper-warning-icon
|
|
Filled bottom line progress
ux4g-stepper-bottom-line-fill
|
|
Compact progress wrapper
ux4g-stepper-progress
|
|
Segmented progress track
ux4g-stepper-progress-track
|
|
Previous or next action
ux4g-stepper-progress-btn
|
Stepper visually represents a multi-step process, guiding users through a sequence of actions. It enhances usability by breaking down complex workflows into manageable steps.
A focused view of the Horizontal, Vertical, and Compact Stepper families.
Quickly copy the classes used by the showcased Stepper variants.
|
Main stepper wrapper
ux4g-stepper
|
|
Horizontal layout
ux4g-stepper-horizontal
|
|
Vertical layout
ux4g-stepper-vertical
|
|
Small horizontal size
ux4g-stepper-small
|
|
Small vertical size
ux4g-stepper-s
|
|
Completed step connector state
ux4g-stepper-done
|
|
Completed step styling
ux4g-stepper-completed
|
|
Pending step styling
ux4g-stepper-step-pending
|
|
Warning icon treatment
ux4g-stepper-warning-icon
|
|
Filled bottom line progress
ux4g-stepper-bottom-line-fill
|
|
Compact progress wrapper
ux4g-stepper-progress
|
|
Segmented progress track
ux4g-stepper-progress-track
|
|
Previous or next action
ux4g-stepper-progress-btn
|