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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<ol class="midwest-timeline" aria-label="Getting started"> <li class="midwest-timeline-item complete"> <div class="midwest-timeline-item-connector" aria-hidden="true"> <span class="midwest-timeline-item-dot"> <span style="font-size: 0.75rem; font-weight: 700; color: var(--theme-8); line-height: 1;"> 1 </span> </span> <span class="midwest-timeline-item-line"></span> </div> <div class="midwest-timeline-item-card"> <article data-controller="midwest-card" class="midwest-card"> <div class="wrap"> <header> <div style="display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;"> <span>Create your account</span> <span class="midwest-badge size-default theme-green"> <span class="value">Complete</span> </span> </div> </header> <section> Sign up and confirm your email address. </section> </div> </article> </div> </li> <li class="midwest-timeline-item complete"> <div class="midwest-timeline-item-connector" aria-hidden="true"> <span class="midwest-timeline-item-dot"> <span style="font-size: 0.75rem; font-weight: 700; color: var(--theme-8); line-height: 1;"> 2 </span> </span> <span class="midwest-timeline-item-line"></span> </div> <div class="midwest-timeline-item-card"> <article data-controller="midwest-card" class="midwest-card"> <div class="wrap"> <header> <div style="display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;"> <span>Set up your workspace</span> <span class="midwest-badge size-default theme-green"> <span class="value">Complete</span> </span> </div> </header> <section> Name your team and invite your first colleague. </section> </div> </article> </div> </li> <li class="midwest-timeline-item active"> <div class="midwest-timeline-item-connector" aria-hidden="true"> <span class="midwest-timeline-item-dot"> <span style="font-size: 0.75rem; font-weight: 700; color: var(--theme-8); line-height: 1;"> 3 </span> </span> <span class="midwest-timeline-item-line"></span> </div> <div class="midwest-timeline-item-card"> <article data-controller="midwest-card" class="midwest-card"> <div class="wrap"> <header> <div style="display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;"> <span>Connect your tools</span> <span class="midwest-badge size-default theme-cyan"> <span class="value">In progress</span> </span> </div> </header> <section> Link Slack, GitHub, or your project calendar. </section> <footer> <a class="midwest-button variant-default size-small theme-primary" name="button" href="#"> <span class="midwest-button-content">Continue setup</span> <div class="midwest-loading-icon" role="img" aria-label="Loading" aria-hidden="true" style="display: none"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <circle cx="15" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="60" cy="15" r="9" fill-opacity="0.3"> <animate attributename="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="105" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> </svg> </div> </div> </a> </footer> </div> </article> </div> </li> <li class="midwest-timeline-item"> <div class="midwest-timeline-item-connector" aria-hidden="true"> <span class="midwest-timeline-item-dot"> <span style="font-size: 0.75rem; font-weight: 700; color: var(--theme-8); line-height: 1;"> 4 </span> </span> <span class="midwest-timeline-item-line"></span> </div> <div class="midwest-timeline-item-card"> <article data-controller="midwest-card" class="midwest-card"> <div class="wrap"> <header> <div style="display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;"> <span>Import your data</span> <span class="midwest-badge size-default theme-primary"> <span class="value">Upcoming</span> </span> </div> </header> <section> Bring in contacts or existing projects via CSV. </section> <footer> <a class="midwest-button variant-outline size-small theme-primary" name="button" href="#"> <span class="midwest-button-content">Start this step</span> <div class="midwest-loading-icon" role="img" aria-label="Loading" aria-hidden="true" style="display: none"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <circle cx="15" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="60" cy="15" r="9" fill-opacity="0.3"> <animate attributename="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="105" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> </svg> </div> </div> </a> </footer> </div> </article> </div> </li> <li class="midwest-timeline-item"> <div class="midwest-timeline-item-connector" aria-hidden="true"> <span class="midwest-timeline-item-dot"> <span style="font-size: 0.75rem; font-weight: 700; color: var(--theme-8); line-height: 1;"> 5 </span> </span> <span class="midwest-timeline-item-line"></span> </div> <div class="midwest-timeline-item-card"> <article data-controller="midwest-card" class="midwest-card"> <div class="wrap"> <header> <div style="display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;"> <span>Go live</span> <span class="midwest-badge size-default theme-primary"> <span class="value">Upcoming</span> </span> </div> </header> <section> Flip the switch and start inviting your first clients. </section> <footer> <a class="midwest-button variant-outline size-small theme-primary" name="button" href="#"> <span class="midwest-button-content">Start this step</span> <div class="midwest-loading-icon" role="img" aria-label="Loading" aria-hidden="true" style="display: none"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <circle cx="15" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="60" cy="15" r="9" fill-opacity="0.3"> <animate attributename="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="105" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> </svg> </div> </div> </a> </footer> </div> </article> </div> </li></ol>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
<%# Onboarding milestones — numbered icon slots act as step counters. midwest_badge in each card header shows per-step status (Complete/Active/Upcoming). midwest_button provides the primary CTA on the current and next steps.%><% steps = [ { title: 'Create your account', body: 'Sign up and confirm your email address.', state: :complete }, { title: 'Set up your workspace', body: 'Name your team and invite your first colleague.', state: :complete }, { title: 'Connect your tools', body: 'Link Slack, GitHub, or your project calendar.', state: :active }, { title: 'Import your data', body: 'Bring in contacts or existing projects via CSV.', state: :upcoming }, { title: 'Go live', body: 'Flip the switch and start inviting your first clients.', state: :upcoming }] %><% badge_for = { complete: ['Complete', :success], active: ['In progress', :info], upcoming: ['Upcoming', :default]} %><%= midwest_timeline(label: 'Getting started') do |t| %> <% steps.each_with_index do |step, i| %> <% t.with_item(complete: step[:state] == :complete, active: step[:state] == :active) do |item| %> <% item.with_icon do %> <span style="font-size: 0.75rem; font-weight: 700; color: var(--theme-8); line-height: 1;"> <%= i + 1 %> </span> <% end %> <%= midwest_card do |c| %> <% c.with_header do %> <div style="display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;"> <span><%= step[:title] %></span> <%= midwest_badge(badge_for[step[:state]][0], state: badge_for[step[:state]][1]) %> </div> <% end %> <%= step[:body] %> <% if step[:state] == :active %> <% c.with_footer do %> <%= midwest_button('Continue setup', '#', size: :small, variant: :default) %> <% end %> <% elsif step[:state] == :upcoming %> <% c.with_footer do %> <%= midwest_button('Start this step', '#', size: :small, variant: :outline) %> <% end %> <% end %> <% end %> <% end %> <% end %><% end %>Milestones
Numbered icon slots turn each dot into a step counter — good for onboarding checklists or how-it-works sections.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Timeline/milestones
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."