<%= render "layouts/documentation/component_header", title: "Badge", description: "Displays a badge or a component that looks like a badge." %> <%= content_for :preview, flush: true do %> <%= render_code_preview('badge') %> <% end %> <% content_for :code, flush: true do %> <%= code_partial("badge/preview", :erb) %> <% end %> <%= render_preview %>

Installation

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

Usage

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