Previews

1
2
3
4
5
6
7
8
render(Primer::Alpha::Dialog.new(open: true, title: title, subtitle: subtitle, size: size, position: position, position_narrow: position_narrow, visually_hide_title: visually_hide_title)) do |d|
if icon.present? && (icon != :none)
d.with_show_button(icon: icon, "aria-label": icon.to_s, disabled: disable_button)
else
d.with_show_button(disabled: disable_button) { button_text }
end
d.with_body { body_text }
end