Skip to content

Commit 52fa19a

Browse files
authored
Added Complex section
I've added a new section called **Complex** to the **Stepper** component to demonstrate how this component can be used in different scenarios. This is possible as part of: twbs#42165
1 parent a7f1ee7 commit 52fa19a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

site/src/content/docs/components/stepper.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ Wrap your horizontal stepper in a `.stepper-overflow` container to enable horizo
6565
</ol>
6666
</div>`} />
6767

68+
### Complex
69+
70+
You can include richer content inside each step to provide additional context, guidance, or visual hierarchy, allowing steps to contain supporting descriptions, helper text, status indicators, or other decorative elements.
71+
72+
<Example code={`<ol class="stepper stepper-horizontal w-100">
73+
<li class="stepper-item active"><div><div class="fw-semibold">Create</div><div class="small fg-secondary">Create an account.</div></div></li>
74+
<li class="stepper-item active"><div><div class="fw-semibold">Confirm</div><div class="small fg-secondary">Confirm your email.</div></div></li>
75+
<li class="stepper-item"><div><div class="fw-semibold">Set-up</div><div class="small fg-secondary">Configure your profile.</div></div></li>
76+
<li class="stepper-item"><div><div class="fw-semibold">Finish</div><div class="small fg-secondary">Welcome aboard!</div></div></li>
77+
</ol>`} />
78+
79+
<Example code={`<ol class="stepper stepper-horizontal w-100">
80+
<li class="stepper-item theme-success active"><div><div>Create account</div><div class="badge badge-subtle theme-success">Complete</div></div></li>
81+
<li class="stepper-item active"><div><div>Confirm email</div><div class="badge badge-subtle theme-primary">In-progress</div></div></li>
82+
<li class="stepper-item"><div><div>Update profile</div><div class="badge badge-subtle theme-secondary">Pending</div></div></li>
83+
<li class="stepper-item"><div><div>Finish</div><div class="badge badge-subtle theme-secondary">Pending</div></div></li>
84+
</ol>`} />
85+
6886
## Playground
6987

7088
Experiment with stepper options including orientation, breakpoints, step count, and more.

0 commit comments

Comments
 (0)