Certain props are shared across all form-related components, and you can find them in the form wrapper.
By using the class prop, you can apply custom classes or Tailwind CSS classes to customize the appearance and behavior of the gallery, allowing for flexible design changes.
Checkbox component
<.checkbox_field color="white" /> <.checkbox_field color="primary" /> <.checkbox_field color="secondary" /> <.checkbox_field color="dark" /> <.checkbox_field color="success" /> <.checkbox_field color="warning" /> <.checkbox_field color="danger" /> <.checkbox_field color="info" /> <.checkbox_field color="light" /> <.checkbox_field color="misc" /> <.checkbox_field color="dawn" />
Checkbox label class prop
Add your custom classes to checkbox labels
<.checkbox_field label_class="your_classes" />
Checkbox reverse prop
Change the order of the checkbox and label.
<.checkbox_field reverse /> <.checkbox_field />
Checkbox checked prop
This prop sets the checkbox to checked (true).
<.checkbox_field checked />