Use Input Groups for complex fields
mainBootstrap 5 Input groups allow you to combine fields with add-ons (text or buttons) placed either before or after the input.
django-bootstrap5 supports:
- Separate rendering of labels, fields, help texts, and errors to allow for custom input group construction.
- Support for
addon_beforeandaddon_afteras part ofbootstrap_field. - Defining add-ons via Python code in the form, field, or widget definition.
Note: When using input groups, ensure the parent container has the has-validation class as required by Bootstrap 5.