Sha256: 79338abb80f323f36b08415350e6dac3efc0b820eedc84a99b3973a34948c641
Contents?: true
Size: 904 Bytes
Versions: 12
Compression:
Stored size: 904 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_content %> <% dialog.with_additional_content(display: :inline) do %> <%= render(Primer::Alpha::Banner.new) { "Some additional content 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
12 entries across 12 versions & 1 rubygems