Sha256: d82165f00310fd665333ce574a1768bc1e4862c6706d2cdf45f2a356f7073f47

Contents?: true

Size: 853 Bytes

Versions: 8

Compression:

Stored size: 853 Bytes

Contents

<%= render_component_header title: "Toggle",
      description: "A two-state button that can be either on or off." %>

<% content_for :preview, flush: true do %>
<div class="w-full flex justify-center">
  <%= render_code_preview('toggle') %>
</div>
<% end %>

<% content_for :code, flush: true do %>
<div class="w-full flex justify-center">
  <%= code_partial("toggle/preview", :erb) %>
</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>
<%= code_sample(language: "sh") do %>
  rails generate shadcn-ui toggle
<% 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("toggle/usage", :erb) %>

<%= render_usage("toggle") %>

Version data entries

8 entries across 8 versions & 1 rubygems

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