<%= modal_trigger("Click to show modal", href: '#modal-1') %> <%= modal(id: 'modal-1') do %> <%= modal_header("Heading") %> <%= modal_body("The body ...") %> <%= modal_footer %> <% end %>