Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div style="position:sticky;top:0;" class="color-bg-accent">
<%= render(Primer::Alpha::Overlay.new(title: "Dialog", role: :dialog, size: :large, padding: :condensed)) do |d| %>
<% d.with_header(title: "Large Dialog Header", divider: true) do |header| %>
<% header.with_filter do %>
<%= render Primer::Alpha::TextField.new(
autofocus: true,
visually_hide_label:
true,
name: "filter",
label: "Filter Overlay"
) %>
<% end %>
<% end %>
<% d.with_show_button { "Show Overlay" } %>
<% d.with_footer { "Large Dialog Footer" } %>
<% d.with_body { "This is a long body for the overlay dialog. <br>".html_safe * 20 } %>
<% end %>
</div>
<div style="height:3000px;"></div>