<%= render_component_header title: "Label", description: "Displays a clickable label that will focus the associated form field." %> <% content_for :preview, flush: true do %> <%= render_code_preview('label') %> <% end %> <% content_for :code, flush: true do %> <%= code_partial("label/preview", :erb) %> <% end %> <%= render_preview %>

Installation

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

Usage

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