Sha256: 8e57c03f35b44f3745e65dd4f77dc23325b6e961d2e70725bd955c9bb85b4d07

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

<%= render(Yattho::BaseComponent.new(**@wrapper_arguments)) do %>
  <%= render(Yattho::BaseComponent.new(**@system_arguments)) do %>
    <% if @icon %>
      <div class="Banner-visual">
        <%= render(Yattho::Beta::Octicon.new(icon: @icon)) %>
      </div>
    <% end %>
    <%= render(Yattho::BaseComponent.new(**@message_arguments)) do %>
      <p class="Banner-title" data-target="<%= catalyst_target(field: "titleText") %>"><%= content %></p>
      <% if @description %>
        <p><%= @description %></p>
      <% end %>
    <% end %>
    <% if action %>
      <div class="flash-action Banner-actions">
        <%= action %>
      </div>
    <% end %>
    <% if @dismissible %>
      <div class="flash-close Banner-close">
        <%= render(
          Yattho::Beta::IconButton.new(
            scheme: :invisible,
            icon: :x,
            aria: { label: "Dismiss" },
            data: { action: catalyst_action(event: "click", function: "dismiss") },
            autofocus: true
          )
        ) %>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 app/components/yattho/alpha/banner.html.erb
yattho_view_components-0.0.1 app/components/yattho/alpha/banner.html.erb