Sha256: 6d28830cedf59abc605a7d494d7466d91dc339e8260b31648fe85f2df32bf3b9
Contents?: true
Size: 902 Bytes
Versions: 3
Compression:
Stored size: 902 Bytes
Contents
<%= render(Primer::OpenProject::FeedbackDialog.new(id: "my-dialog")) do |dialog| %> <% dialog.with_show_button { "Click me" } %> <% dialog.with_feedback_message(icon_arguments: { icon: icon, color: icon_color }, loading: loading_state) do |message| %> <% message.with_heading(tag: :h2).with_content("Awesome!") %> <% message.with_description { "Great! Everything worked well." } if show_description %> <% end %> <% if show_additional_details %> <% dialog.with_additional_details(display: :inline) do %> <%= render(Primer::Alpha::Banner.new) { "Some additional details below" } %> <% end %> <% end %> <% if custom_footer %> <% dialog.with_footer do %> <%= render(Primer::Beta::Button.new("data-close-dialog-id": "my-dialog")) { "Cancel" } %> <%= render(Primer::Beta::Button.new(scheme: :primary)) { "Accept" } %> <% end %> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems