Sha256: 4e9168a49df40621b77b7b0ff91d7849825d0c83e9b19cbb4082688df8ada799

Contents?: true

Size: 894 Bytes

Versions: 5

Compression:

Stored size: 894 Bytes

Contents

<div class="<%= html_attrs[:class] %>" <%= html_attributes %>>
<div class="ariadne-p-4">
    <div class="ariadne-flex ariadne-items-start">
    <div class="ariadne-flex-shrink-0 <%= style(:text, type:) %>">
        <%= icon %>
    </div>
    <div class="ariadne-ml-3 ariadne-w-0 ariadne-flex-1 ariadne-pt-0.5 <%= style(:text, type:) %>">
        <p class="ariadne-text-sm ariadne-font-semibold "><%= title %></p>
        <p class="ariadne-mt-1 ariadne-text-sm "><%= message %></p>
    </div>
    <div class="ariadne-ml-4 ariadne-flex ariadne-flex-shrink-0 ">
        <% if dismissable? %>
            <%= render Ariadne::UI::Button::Component.new(theme: :nude, html_attrs: { class: style(:dismissable, type:), aria: { label: "close_label" }, data: { action: "click->#{stimulus_name}#hide" } }).as_icon(icon: "x-mark", variant: :outline) %>
        <% end %>
    </div>
    </div>
</div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.81 app/components/ariadne/ui/flash/component.html.erb
ariadne_view_components-0.0.80.3 app/components/ariadne/ui/flash/component.html.erb
ariadne_view_components-0.0.79.2 app/components/ariadne/ui/flash/component.html.erb
ariadne_view_components-0.0.79.1 app/components/ariadne/ui/flash/component.html.erb
ariadne_view_components-0.0.79 app/components/ariadne/ui/flash/component.html.erb