2.9.7






Checkbox

Default


Close
<%= pb_rails("checkbox" , props: {
  text: "Checkbox Label",
  value: "checkbox-value",
  name: "checkbox-name"
}) %>
Load as checked


Close
<%= pb_rails("checkbox" , props: {
  text: "Checked Checkbox",
  value: "checkbox-value",
  checked: true,
  name: "checkbox-name"
}) %>
Dark


Close
<%= pb_rails("checkbox", props: {
  text: "Checkbox Label" ,
  dark: true
}) %>
Available Props
id
data
classname
aria
children
dark
checked
text
value
name