Sha256: 0a90f3df5afd533b949c1cc67ed2bb94932d4de3a3f581e7b0a90abde12a50a0

Contents?: true

Size: 807 Bytes

Versions: 8

Compression:

Stored size: 807 Bytes

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 %>
  <%= render_code_preview('badge') %>
<% end %>

<% content_for :code, flush: true do %>
  <%= code_partial("badge/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/usage", :erb) %>

<%= render_usage("badge") %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.14 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.13 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.12 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.10 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.8 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.5 app/views/examples/components/badge.html.erb
shadcn-ui-0.0.4 app/views/examples/components/badge.html.erb