<%= render_component_header title: "Skeleton", description: "Use to show a placeholder while content is loading." %> <% content_for :preview, flush: true do %>
<%= render_code_preview('skeleton') %>
<% end %> <% content_for :code, flush: true do %>
<%= code_partial("skeleton/preview", :erb) %>
<% end %> <%= render_preview %>

Installation

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

Usage

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