Sha256: 24daecbc3790fe56eacbe37eae2bebc8242b1ebe77d362a3be3d52b776044a34
Contents?: true
Size: 833 Bytes
Versions: 18
Compression:
Stored size: 833 Bytes
Contents
<%= render(Primer::Alpha::Overlay.new(title: "An overlay", id: "first-overlay")) do |o| %> <% o.with_show_button() { "Show overlay" } %> <% o.with_body() do %> <%= render(Primer::Alpha::Dialog.new(id: "dialog-one", title: title, position: position, subtitle: subtitle, visually_hide_title: false)) do |d| %> <% d.with_show_button { button_text } %> <% d.with_body { body_text } %> <% d.with_footer(show_divider: true) do %> <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": "dialog-one" })) { "Cancel" } %> <% end %> <% end %> <% end %> <% end %> <script> document.getElementById('overlay-show-first-overlay')?.addEventListener('click', e => { setTimeout(() => { document.getElementById('first-overlay').querySelector('button')?.click() }); }); </script>
Version data entries
18 entries across 18 versions & 2 rubygems