Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<div class="flex flex-col gap-8">
<div data-controller="midwest-prose" class="midwest-prose prose">
<p>All steps incomplete — first step current</p>
</div>
<div class="midwest-steps" role="tablist" aria-label="Progress steps">
<div class="midwest-step current">
<button class="step-button" role="tab" aria-selected="true" aria-current="step" type="button">
<span class="copy">Account</span>
</button></div>
<div class="midwest-step">
<button class="step-button" role="tab" aria-selected="false" type="button">
<span class="copy">Details</span>
</button></div>
<div class="midwest-step">
<button class="step-button" role="tab" aria-selected="false" type="button">
<span class="copy">Review</span>
</button></div>
<div class="midwest-step">
<button class="step-button" role="tab" aria-selected="false" type="button">
<span class="copy">Confirm</span>
</button></div>
</div>
<div data-controller="midwest-prose" class="midwest-prose prose">
<p>Two complete, one current, one pending</p>
</div>
<div class="midwest-steps" role="tablist" aria-label="Progress steps">
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Account</span>
</button></div>
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Details</span>
</button></div>
<div class="midwest-step current">
<button class="step-button" role="tab" aria-selected="true" aria-current="step" type="button">
<span class="copy">Review</span>
</button></div>
<div class="midwest-step">
<button class="step-button" role="tab" aria-selected="false" type="button">
<span class="copy">Confirm</span>
</button></div>
</div>
<div data-controller="midwest-prose" class="midwest-prose prose">
<p>All complete</p>
</div>
<div class="midwest-steps" role="tablist" aria-label="Progress steps">
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Account</span>
</button></div>
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Details</span>
</button></div>
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Review</span>
</button></div>
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Confirm</span>
</button></div>
</div>
<div data-controller="midwest-prose" class="midwest-prose prose">
<p>With a disabled step</p>
</div>
<div class="midwest-steps" role="tablist" aria-label="Progress steps">
<div class="midwest-step complete">
<button class="step-button" role="tab" aria-selected="false" type="button">
<div class="midwest-icon " aria-hidden="true">
<div class="midwest-icon-inner">
<svg xmlns="http://www.w3.org/2000/svg" class="Midwest-Icon__Svg" viewbox="0 0 512 512" focusable="false" role="img" aria-label="Checkmark"><title>Checkmark</title>
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M416 128L192 384l-96-96"></path></svg>
</div>
</div>
<span class="copy">Account</span>
</button></div>
<div class="midwest-step current">
<button class="step-button" role="tab" aria-selected="true" aria-current="step" type="button">
<span class="copy">Details</span>
</button></div>
<div class="midwest-step disabled">
<button class="step-button" role="tab" aria-selected="false" aria-disabled="true" type="button" disabled="disabled">
<span class="copy">Review</span>
</button></div>
<div class="midwest-step disabled">
<button class="step-button" role="tab" aria-selected="false" aria-disabled="true" type="button" disabled="disabled">
<span class="copy">Confirm</span>
</button></div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="flex flex-col gap-8">
<%= midwest_prose { tag.p "All steps incomplete — first step current" } %>
<%= midwest_steps do |s| %>
<% s.with_step("Account", current: true) %>
<% s.with_step("Details") %>
<% s.with_step("Review") %>
<% s.with_step("Confirm") %>
<% end %>
<%= midwest_prose { tag.p "Two complete, one current, one pending" } %>
<%= midwest_steps do |s| %>
<% s.with_step("Account", complete: true) %>
<% s.with_step("Details", complete: true) %>
<% s.with_step("Review", current: true) %>
<% s.with_step("Confirm") %>
<% end %>
<%= midwest_prose { tag.p "All complete" } %>
<%= midwest_steps do |s| %>
<% s.with_step("Account", complete: true) %>
<% s.with_step("Details", complete: true) %>
<% s.with_step("Review", complete: true) %>
<% s.with_step("Confirm", complete: true) %>
<% end %>
<%= midwest_prose { tag.p "With a disabled step" } %>
<%= midwest_steps do |s| %>
<% s.with_step("Account", complete: true) %>
<% s.with_step("Details", current: true) %>
<% s.with_step("Review", disabled: true) %>
<% s.with_step("Confirm", disabled: true) %>
<% end %>
</div>

No assets to display.
Add a .js or .css file alongside the component to see it here.

Accessibility

Figma embed for Steps/states

Annotate a preview to embed its Figma design here:

@figma "https://figma.com/..."