Sha256: 6740ce7e48a530f548f4479ff2844f739c42a37d7408c4196c0b24e3f64d4267

Contents?: true

Size: 1.23 KB

Versions: 8

Compression:

Stored size: 1.23 KB

Contents

<!--prettier-ignore-->
<%= render "layouts/documentation/component_header",
  title: "Card",
  description: "Displays a card with header, content, and footer." %>

<%= content_for :preview, flush: true do %>
  <%= render_code_preview('card') %>
<% end %>

<% content_for :code, flush: true do %>
  <%= code_partial("card/preview", :erb) %>
<% end %>

<%= render_preview %>

<h2 class="font-heading scroll-m-20 border-b pb-2 text-2xl font-semibold tracking-tight first:mt-0" id="installation">Installation</h2>
<%= code_sample(language: "sh") do %>
  rails generate shadcn-ui card
<% end %>

<h2 class="font-heading mt-12 scroll-m-20 border-b pb-2 mb-2 text-2xl font-semibold tracking-tight first:mt-0" id="usage">Usage</h2>
<%= code_partial("card/usage", :erb) %>

<%= render_usage("card") %>

<% content_for :examples, flush: true do %>
  <%= render "examples/components/card/code/form" %>
<% end %>

<% content_for :code, flush: true do %>
  <%= code_partial("card/form", :erb) %>
<% end %>

<%= render_example %>

<% content_for :examples, flush: true do %>
  <%= render "examples/components/card/code/notifications" %>
<% end %>

<% content_for :code, flush: true do %>
  <%= code_partial("card/notifications", :erb) %>
<% end %>

<%= render_example %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/views/examples/components/card.html.erb
shadcn-ui-0.0.14 app/views/examples/components/card.html.erb
shadcn-ui-0.0.13 app/views/examples/components/card.html.erb
shadcn-ui-0.0.12 app/views/examples/components/card.html.erb
shadcn-ui-0.0.10 app/views/examples/components/card.html.erb
shadcn-ui-0.0.8 app/views/examples/components/card.html.erb
shadcn-ui-0.0.5 app/views/examples/components/card.html.erb
shadcn-ui-0.0.4 app/views/examples/components/card.html.erb