Card

Usage

<%= vt_card do %>
  <p>Card content</p>
<% end %>

With title

<%= vt_card do |card| %>
  <% card.with_title { "Card with title" } %>
  <p>Some content.</p>
<% end %>

With description

<%= vt_card do |card| %>
  <% card.with_title { "Notifications" } %>
  <% card.with_description { "You have 3 unread messages." } %>
<% end %>
<%= vt_card do |card| %>
  <p>Some content</p>
  <% card.with_footer { "Updated 10 minutes ago" } %>
<% end %>

Custom attributes

Card component doesn’t accept custom attributes yet.