<%= render "layouts/documentation/component_header", title: "Collapsible", description: "An interactive component which expands/collapses a panel." %> <%= content_for :preview, flush: true do %>
<%= render_collapsible trigger: "@peduarte starred 3 repositories" do %> <% collapsible_preview do %>
@radix-ui/primitives
<% end %> <% collapsible_body do %>
@radix-ui/colors
@stitches/react
<% end %> <% end %>
<% end %> <% content_for :code, flush: true do %> <%= code_partial("collapsible/code/preview", :erb) %> <% end %> <%= render_preview %>

Installation

<%= code_sample(language: "sh") do %> rails generate shadcn-ui collapsible <% end %>

Usage

<%= code_partial("collapsible/code/usage", :erb) %> <%= render_usage("collapsible") %>