Sha256: fb9f64082281fda287ebb9f425691259eb05de3e182bce1fc614ffb71ac5c8e2

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

<div class="rounded-lg border bg-card text-card-foreground shadow-sm w-[350px] <%= options[:class] %>">
  <% if title || subtitle %>
  <div class="flex flex-col space-y-1.5 p-6">
    <% if title %>
    <h3 class="text-2xl font-semibold leading-none tracking-tight"><%= title %></h3>
    <% end %> <% if subtitle %>
    <p class="text-sm text-muted-foreground"><%= subtitle %></p>
    <% end %>
  </div>
  <% end %>
  <% if !block && !title %>
    <%= content_tag( :div, class: "p-6" ){ body } %>
  <% elsif !block %>
    <%= content_tag( :div, class: "px-6" ){ body } %>
  <% else %>
    <%= body %>
  <% end %>
  <% if footer %><footer class="mx-6 mb-6"><%= footer %></footer><% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shadcn-ui-0.0.12 app/views/components/ui/_card.html.erb
shadcn-ui-0.0.10 app/views/components/ui/_card.html.erb
shadcn-ui-0.0.8 app/views/components/ui/_card.html.erb
shadcn-ui-0.0.5 app/views/components/ui/_card.html.erb
shadcn-ui-0.0.4 app/views/components/ui/_card.html.erb