Sha256: bf862f71310cb16a1d4b9c93b6419162009fecd6f70cf276abcd77aca2d9bffe

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

<!--prettier-ignore-->

<%= render "layouts/documentation/component_header",
  title: "Button",
  description: "Displays a button or a component that looks like a button." %>

<%= content_for :preview, flush: true do %>
<div class="w-full mx-auto flex justify-center"><%= render_button text: "Button" %></div>
<div class="w-full mx-auto flex justify-center">
  <%= render_button text: "Link", as: :link, href: "/" %>
</div>
<div class="w-full mx-auto flex justify-center">
  <%= render_button text: "Secondary", variant: :secondary %>
</div>
<div class="w-full mx-auto flex justify-center">
  <%= render_button text: "Destructive", variant: :destructive %>
</div>
<div class="w-full mx-auto flex justify-center">
  <%= render_button text: "Outline", variant: :outline %>
</div>
<div class="w-full mx-auto flex justify-center">
  <%= render_button text: "Ghost", variant: :ghost %>
</div>
<div class="w-full mx-auto flex justify-center">
  <%= render_button text: "Ghost Link", variant: :ghost, as: :link %>
</div>
<% 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>

<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"><a href="/docs/components/dialog#usage">Usage</a></h2>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shadcn-ui-0.0.2 app/views/examples/components/button.html.erb
shadcn-ui-0.0.1 app/views/examples/components/button.html.erb