Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions form/bootstrap5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ For a checkbox/radio field, calling ``form_label()`` doesn't render anything.
Due to Bootstrap internals, the label is already rendered by ``form_widget()``.

Inline Checkboxes and Radios
----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you want to render your checkbox or radio fields `inline`_, you can add
the ``checkbox-inline`` or ``radio-inline`` class (depending on your Symfony
Expand Down Expand Up @@ -138,7 +138,7 @@ Form type or ``ChoiceType`` configuration) to the label class.
}) }}

Switches
________
~~~~~~~~

Bootstrap 5 allows to render checkboxes as `switches`_. You can enable this
feature on your Symfony Form ``CheckboxType`` by adding the ``checkbox-switch``
Expand Down Expand Up @@ -178,7 +178,7 @@ class to the label:
Switches only work with **checkbox**.

Input group
___________
-----------

To create `input group`_ in your Symfony Form, simply add the ``input-group``
class to the ``row_attr`` option.
Expand Down