Skip to content
Open
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
8 changes: 8 additions & 0 deletions docs/design_templates/checkbox.rst
Comment thread
promptless-for-oss marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ These options apply to the whole group of checkboxes. All of them are optional.
- boolean
- ``false``
- Set to ``true`` to place each label before its checkbox. This adds the ``form-check-reverse`` class.
* - ``variant``
- string
- Empty string
- Set to ``chip`` to show each checkbox as an outlined pill that fills in when checked, like the note type filter on a Contact's **Notes** tab. This adds the ``checkbox-chips`` class to the ``<fieldset>``, which lays the pills out in a wrapping row, and the ``form-check--chip`` class to each checkbox. Selecting anywhere on a pill toggles its checkbox. The template ignores other values.
* - ``size``
- string
- ``md``
- The pill height when ``variant`` is ``chip``. Use ``xs`` for 1.5rem, ``sm`` for 2rem, ``md`` for 2.5rem, or ``lg`` for 3rem. The ``xs`` size also uses a smaller checkbox and text. Any size other than ``md`` adds the matching class to each checkbox, such as ``form-check--chip-sm``. The template uses ``md`` for other values and ignores this option unless ``variant`` is ``chip``.
* - ``required``
- boolean
- ``false``
Expand Down
Loading