Sha256: 5b30435e4eda7cea67a512fecb5f256b730ec004b96eaa4f12bb73813712b413

Contents?: true

Size: 699 Bytes

Versions: 9

Compression:

Stored size: 699 Bytes

Contents

<p class="leading-7 [&:not(:first-child)]:mt-6">The Checkbox component introduces:</p>

<ul class="my-6 ml-6 list-disc [&>li]:mt-2 text-sm">
  <li><%= code("app/helpers/components/checkbox_helper.rb") %></li>
  <li><%= code("app/views/components/ui/_checkbox.html.erb") %></li>
  <li><%= code("app/javascript/controllers/ui/checkbox_controller.js") %></li>
</ul>

<p class="leading-7 [&:not(:first-child)]:mt-6"><%= code("render_checkbox") %> accepts two required arguments, one for the <%= code("name:") %> of the checkbox which will pair with <%= code("label:") %> of the checkbox. The toggle functionality is controller by <%= code("app/javascript/controllers/ui/checkbox_controller.js") %>.</p>

Version data entries

9 entries across 9 versions & 1 rubygems

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