Sha256: 22954bde55116aaad3d04c475895ccc9070b02020a0c41b53f4571b7d7309288
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
<!--prettier-ignore--> <%= 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 %> <div class="w-full mx-auto flex justify-center"><%= render_badge text: "Badge" %></div> <div class="w-full mx-auto flex justify-center"> <%= render_badge text: "Secondary", variant: :secondary %> </div> <div class="w-full mx-auto flex justify-center"> <%= render_badge text: "Destructive", variant: :destructive %> </div> <div class="w-full mx-auto flex justify-center"> <%= render_badge text: "Outline", variant: :outline %> </div> <div class="w-full mx-auto flex justify-center"> <%= render_badge text: "Ghost", variant: :ghost %> </div> <% end %> <% content_for :code, flush: true do %> <%= code_partial("badge/code/preview", :erb) %> <% end %> <%= render_preview %> <h2 class="font-heading scroll-m-20 border-b pb-2 text-2xl font-semibold tracking-tight first:mt-0" id="installation">Installation</h2> <%= code_sample(language: "sh") do %> rails generate shadcn-ui badge <% end %> <h2 class="font-heading mt-12 scroll-m-20 border-b pb-2 mb-2 text-2xl font-semibold tracking-tight first:mt-0" id="usage">Usage</h2> <%= code_partial("badge/code/usage", :erb) %> <%= render_usage("badge") %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shadcn-ui-0.0.3 | app/views/examples/components/badge.html.erb |