Input Group
Display additional information or actions attached to an input or textarea using prefix, suffix, and footer slots.
Icon Prefix
Add an icon before the input with the
:prefix
slot and
type="icon"
.
Remember to add
pl-9
padding to the input.
Icon Prefix
Text Prefix & Suffix
Add text labels on either side of the input. Adjust padding based on text length.
Currency Input
$
USD
Icon Suffix
Icons work on the suffix side too.
Email Input
Interactive Button
Use
type="interactive"
for clickable buttons that need pointer events enabled.
Copy Button
Textarea with Footer
Add a footer below textareas for actions or character counts.
With Footer
Horizontal Layout
Use
.input_group_horizontal
for external prefix/suffix labels.
URL Input
.com
Padding Guidelines
Remember:
You need to manually add padding to inputs to make room for prefix/suffix content.
-
Icon prefix:
pl-9 -
Icon suffix:
pr-9 -
Short text prefix:
pl-7 -
Short text suffix:
pr-12 -
Textarea footer:
pb-12