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
<div data-controller="midwest-banner" data-action="midwest-countdown-timer:complete->midwest-banner#close" class="midwest-banner animated visible position-sticky placement-top">
<div class="midwest-banner__content">
<div class="w-full">
<p>This banner will auto-dismiss after 2 seconds.</p>
</div>
<button data-action="midwest-banner#close" class="midwest-button variant-default size-small pill contrast theme-primary" name="button">
<span class="midwest-button-content">
<span class="sr-only">Dismisses in 2 seconds</span>
<div data-controller="midwest-countdown-timer" data-midwest-countdown-timer-seconds-value="2" style="--duration: 2s; --circumference: 69.115;" aria-hidden="true" class="midwest-countdown-timer">
<svg viewBox="0 0 28 28" width="1em" height="1em">
<circle class="midwest-countdown-timer__track" cx="14" cy="14" r="11" />
<circle
class="midwest-countdown-timer__progress"
cx="14" cy="14"
r="11"
stroke-dasharray="69.115" />
</svg>
</div>
</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>
</button>
</div>
</div>
1
2
3
<%= midwest_banner countdown: 2 do %>
<p>This banner will auto-dismiss after 2 seconds.</p>
<% end %>

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

Accessibility

Figma embed for Banner/countdown

Annotate a preview to embed its Figma design here:

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