Sha256: 037cb47a9ed9b5e8a3c944ac6971604a9f70172659f23ca2300cbe2a733571ff

Contents?: true

Size: 887 Bytes

Versions: 4

Compression:

Stored size: 887 Bytes

Contents

<%= render "layouts/documentation/component_header",
  title: "Table",
  description: "A simple table component for displaying data in rows and columns." %>

<% content_for :preview, flush: true do %>
<div class="w-full flex justify-center">
  <%= render_code_preview('table') %>
</div>
<% end %>

<% content_for :code, flush: true do %>
<div class="w-full flex justify-center">
  <%= code_partial("table/preview", :erb) %>
</div>
<% 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 table
<% 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("table/usage", :erb) %>

<%= render_usage("table") %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/views/examples/components/table.html.erb
shadcn-ui-0.0.14 app/views/examples/components/table.html.erb
shadcn-ui-0.0.13 app/views/examples/components/table.html.erb
shadcn-ui-0.0.12 app/views/examples/components/table.html.erb