Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
render(Primer::Alpha::Overlay.new(
title: title,
subtitle: subtitle,
role: role,
size: size,
padding: padding,
anchor_align: anchor_align,
anchor_side: anchor_side,
allow_out_of_bounds: allow_out_of_bounds,
visually_hide_title: visually_hide_title
)) do |d|
d.with_header(title: title, size: header_size)
d.with_show_button { button_text }
d.with_body { body_text }
end