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
<ol class="midwest-timeline is-horizontal" aria-label="Order #8342">
<li class="midwest-timeline-item complete">
<div class="midwest-timeline-item-connector" aria-hidden="true">
<span class="midwest-timeline-item-dot">
</span>
<span class="midwest-timeline-item-line"></span>
</div>
<div class="midwest-timeline-item-card">
<strong style="display: block; font-size: 0.8125rem;">Order placed</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 18, 9:04 am</span>
<span class="midwest-badge size-default theme-green">
<span class="value">Confirmed</span>
</span>
</div>
</li>
<li class="midwest-timeline-item complete">
<div class="midwest-timeline-item-connector" aria-hidden="true">
<span class="midwest-timeline-item-dot">
</span>
<span class="midwest-timeline-item-line"></span>
</div>
<div class="midwest-timeline-item-card">
<strong style="display: block; font-size: 0.8125rem;">Payment</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 18, 9:05 am</span>
<span class="midwest-badge size-default theme-green">
<span class="value">Authorised</span>
</span>
</div>
</li>
<li class="midwest-timeline-item complete">
<div class="midwest-timeline-item-connector" aria-hidden="true">
<span class="midwest-timeline-item-dot">
</span>
<span class="midwest-timeline-item-line"></span>
</div>
<div class="midwest-timeline-item-card">
<strong style="display: block; font-size: 0.8125rem;">Dispatched</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 19, 2:30 pm</span>
<span class="midwest-badge size-default theme-green">
<span class="value">Shipped</span>
</span>
</div>
</li>
<li class="midwest-timeline-item active">
<div class="midwest-timeline-item-connector" aria-hidden="true">
<span class="midwest-timeline-item-dot">
</span>
<span class="midwest-timeline-item-line"></span>
</div>
<div class="midwest-timeline-item-card">
<strong style="display: block; font-size: 0.8125rem;">Out for delivery</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 21 · est. today</span>
<span class="midwest-badge size-default theme-cyan">
<span class="value">In transit</span>
</span>
<div style="margin-top: 0.5rem;">
<a class="midwest-button variant-outline size-tiny theme-primary" name="button" href="#">
<span class="midwest-button-content">Track shipment</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>
</div>
</div>
</li>
<li class="midwest-timeline-item">
<div class="midwest-timeline-item-connector" aria-hidden="true">
<span class="midwest-timeline-item-dot">
</span>
<span class="midwest-timeline-item-line"></span>
</div>
<div class="midwest-timeline-item-card">
<strong style="display: block; font-size: 0.8125rem;">Delivered</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Pending</span>
<span class="midwest-badge size-default theme-primary">
<span class="value">Awaiting</span>
</span>
</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
<%#
Order tracker — horizontal layout showing e-commerce shipment progression.
midwest_badge in each step communicates status at a glance; the active step
includes a midwest_button for the primary action.
%>
<%= midwest_timeline(horizontal: true, label: 'Order #8342') do |t| %>
<% t.with_item(complete: true) do %>
<strong style="display: block; font-size: 0.8125rem;">Order placed</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 18, 9:04 am</span>
<%= midwest_badge('Confirmed', state: :success) %>
<% end %>
<% t.with_item(complete: true) do %>
<strong style="display: block; font-size: 0.8125rem;">Payment</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 18, 9:05 am</span>
<%= midwest_badge('Authorised', state: :success) %>
<% end %>
<% t.with_item(complete: true) do %>
<strong style="display: block; font-size: 0.8125rem;">Dispatched</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 19, 2:30 pm</span>
<%= midwest_badge('Shipped', state: :success) %>
<% end %>
<% t.with_item(active: true) do %>
<strong style="display: block; font-size: 0.8125rem;">Out for delivery</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Apr 21 · est. today</span>
<%= midwest_badge('In transit', state: :info) %>
<div style="margin-top: 0.5rem;">
<%= midwest_button('Track shipment', '#', size: :tiny, variant: :outline) %>
</div>
<% end %>
<% t.with_item do %>
<strong style="display: block; font-size: 0.8125rem;">Delivered</strong>
<span style="display: block; font-size: 0.75rem; color: var(--gray-8); margin: 0.125rem 0 0.375rem;">Pending</span>
<%= midwest_badge('Awaiting', state: :default) %>
<% end %>
<% end %>

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

Accessibility

Figma embed for Timeline/order_tracker

Annotate a preview to embed its Figma design here:

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