Sha256: 25f6eaf17a7595a59c54954b188363364a76facff59b68f9b6689a158d52e534

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

<!--prettier-ignore-->

<%= render "layouts/documentation/component_header",
  title: "Separator",
  description: "Visually or semantically separates content." %>
<%= content_for :preview, flush: true do %>
  <div class="w-full flex justify-center">
    <%= render_code_preview('separator') %>
  </div>
<% end %>

<% content_for :code, flush: true do %>
<div class="w-full flex justify-center">
  <%= code_partial("separator/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 separator
<% 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"><a href="/docs/components/dialog#usage">Usage</a></h2>
<%= code_partial("separator/usage", :erb) %>

<%= render_usage("separator") %>

<% content_for :examples, flush: true do %>
  <div class="w-full flex justify-center">
    <%= render "examples/components/separator/code/fancy" %>
  </div>
<% end %>

<% content_for :code, flush: true do %>
  <%= code_partial("separator/fancy", :erb) %>
<% end %>

<%= render_example %>

Version data entries

8 entries across 8 versions & 1 rubygems

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