Inputs
Input group
A text field with an icon, unit, keyboard hint or small button inside its border.
npx dtheo@latest add input-group/
N·m
ms
When to use
- Search fields with an icon and shortcut
- Values with a fixed unit (N·m, ms)
- Decorating with icons that add no meaning
- Units the person must type themselves: put the unit in the group, not in the value
Accessibility
- Addons are decorative; the input still needs its own label.