<%= render "layouts/documentation/component_header", title: "Collapsible", description: "An interactive component which expands/collapses a panel." %> <%= content_for :preview, flush: true do %>
<%= render_code_preview('collapsible') %>
<% end %> <% content_for :code, flush: true do %> <%= code_partial("collapsible/preview", :erb) %> <% end %> <%= render_preview %>

Installation

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

Usage

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