Input Groups
Attach prefix or suffix text beside a field while keeping a clear accessible name.
Addons share one border with the field
An input group is a flex row. The addon is a hint or unit, not a replacement for a visible label. Connect the addon with aria-describedby when it helps explain the value.
Prevent wrapping on long addons
Use input-group-nowrap when a prefix must stay on one line with the field.
Sizing and combined controls
What to remember
- Keep a visible
label(or group name) even when an addon shows units or a domain. - Use
aria-describedbywhen the addon or help text explains how to fill the field. - Outer corners get the radius; inner edges between addon and field stay square so the group reads as one control.
- Prefix, suffix, and both-sides addons use the same flex pattern; use
input-group-nowrapwhen a long prefix must not wrap.