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
<div class="flex flex-col gap-4 p-4">
<details class="midwest-callout collapsible theme-primary">
<summary class="callout-summary">
<p class="callout-title">Learn more about this feature</p>
<div class="callout-chevron" aria-hidden="true">
<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" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 184l144 144 144-144"></path></svg>
</div>
</div>
</div>
</summary>
<div class="callout-wrap">
<div data-controller="midwest-prose" class="midwest-prose prose w-full max-w-full m-auto">
<p>This feature allows you to configure advanced settings for your workflow. Changes take effect immediately and apply to all team members.</p>
</div>
</div>
</details>
<details class="midwest-callout collapsible theme-green" open="open">
<summary class="callout-summary">
<p class="callout-title">Already open</p>
<div class="callout-chevron" aria-hidden="true">
<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" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 184l144 144 144-144"></path></svg>
</div>
</div>
</div>
</summary>
<div class="callout-wrap">
<div data-controller="midwest-prose" class="midwest-prose prose w-full max-w-full m-auto">
<p>This callout starts expanded using the <code>open: true</code> option.</p>
</div>
</div>
</details>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="flex flex-col gap-4 p-4">
<%= render Midwest::CalloutComponent.new(collapsible: true, title: 'Learn more about this feature') do %>
<%= midwest_prose(full: true) do %>
<p>This feature allows you to configure advanced settings for your workflow. Changes take effect immediately and apply to all team members.</p>
<% end %>
<% end %>
<%= render Midwest::CalloutComponent.new(collapsible: true, title: 'Already open', open: true, state: :success) do %>
<%= midwest_prose(full: true) do %>
<p>This callout starts expanded using the <code>open: true</code> option.</p>
<% end %>
<% end %>
</div>

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

Accessibility

Figma embed for Callout/collapsible

Annotate a preview to embed its Figma design here:

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