Sha256: 3c548052c627672297f33b3fc3af2d3b4cee4c9fb184033b9b8fcfb427c29a50

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

<!--prettier-ignore-->
<%= render "layouts/documentation/component_header",
  title: "Collapsible",
  description: "An interactive component which expands/collapses a panel." %>

<%= content_for :preview, flush: true do %>
<div class="w-full flex justify-center">
  <%= render_collapsible trigger: "@peduarte starred 3 repositories" do %>
    <% collapsible_preview do %>
      <div class="rounded-md border px-4 py-3 font-mono text-sm">@radix-ui/primitives</div>
    <% end %>
    <% collapsible_body do %>
      <div class="rounded-md border px-4 py-3 font-mono text-sm">@radix-ui/colors</div>
      <div class="rounded-md border px-4 py-3 font-mono text-sm">@stitches/react</div>
    <% end %>
  <% end %>
</div>
<% end %>

<% content_for :code, flush: true do %>
  <%= code_partial("collapsible/code/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 collapsible
<% 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("collapsible/code/usage", :erb) %>

<%= render_usage("collapsible") %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shadcn-ui-0.0.3 app/views/examples/components/collapsible.html.erb