Sha256: 5fd089d86bac983e35b18bc88278af60b0e0374358c7472b5c369a74c960854d

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

<div class="<%= html_attrs[:class] %>" <%= html_attributes %>>
  <% if href.present? %>
    <%= render(Ariadne::UI::Link::Component.new(href: href, theme: :none, html_attrs: { class: "w-full h-full"})) do %>
      <%= header %>
      <div class="ariadne-p-6 ariadne-pt-0">
        <%= content %>
      </div>
      <%= footer %>
    <% end %>
  <% else %>
    <%= header %>
    <div class="ariadne-p-6 ariadne-pt-0">
      <%= content %>
    </div>
    <%= footer %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.85 app/components/ariadne/ui/card/component.html.erb
ariadne_view_components-0.0.84 app/components/ariadne/ui/card/component.html.erb
ariadne_view_components-0.0.83.3 app/components/ariadne/ui/card/component.html.erb
ariadne_view_components-0.0.83.2 app/components/ariadne/ui/card/component.html.erb
ariadne_view_components-0.0.83.1 app/components/ariadne/ui/card/component.html.erb
ariadne_view_components-0.0.83 app/components/ariadne/ui/card/component.html.erb