Input Group
Combines an input with adjoining buttons, icons or add-ons into a single control.
$
Registry itembunx shadcn@latest add @nx-ui/input-groupBasic usage
Pair an input with a leading icon or trailing text add-on.
Sizes
InputGroupButton exposes xs, sm, icon-xs and icon-sm sizes to match the row height.
Disabled & error states
A has-[:focus-visible] rule rings the whole group, and aria-invalid on the control flags an error the same way.
Enter a valid email address.
Textarea with block add-ons
InputGroupTextarea works the same way, with block-start and block-end addons stacking above and below.
API reference
Exported parts and their props, extracted from the component source.