Draft. Ported from the shadcn-vue Input group and restyled with Beehexa tokens on 12 November 2026. Not yet approved. It uses the text-field focus of decision D29.
An input group is one field box with a text field and addons inside it: an icon, fixed text such as https://, or a small button.
When to use
- An icon that says what the field is for, such as a magnifier in a search field.
- Fixed text the value needs: a protocol, a domain, a unit or a currency.
- A button that acts on the field’s value: show or hide a password, clear the search, send a message.
When not to use
- For the field’s name. The label goes above the box, not inside it.
- For more than one button. Put extra actions next to the field, or in a menu.
- For a value people can read but not change. Show it as text with a copy button beside it.
Parts
| Part | Use |
|---|---|
InputGroup |
The box |
InputGroupInput, InputGroupTextarea |
The field, with its own edge removed |
InputGroupAddon |
An addon. align: inline-start (default), inline-end, block-start, block-end |
InputGroupText |
Fixed text in an addon |
InputGroupButton |
A Subtle button, 24 px by default (size="xs"), or icon-xs for an icon only |
States
The box takes the field’s states: color.border.bold at rest; color.border.focus with its 2 px inset ring while the field inside has focus; color.border.danger when the field has aria-invalid="true"; the disabled colours when anything in it is disabled. The button inside keeps its own focus ring.
Tokens
| Part | Tokens |
|---|---|
| Box | size.control.default, radius.control, color.border.bold, color.surface |
| Addon text | font.body.default, color.text.subtle |
| Addon icon | size.icon.default, color.icon.subtle |
| Addon padding | space.100 beside the edge; space.control.gap between an icon and text |
| Button | size.control.small, radius.control.small, space.control.x.small, font.label.small |