Search components

Find a component by name

Input Group

Input or textarea with inline/block addons, buttons and text.

12 results

Align: inline-start

Use align="inline-start" on InputGroupAddon to place the addon before the input. This is the default.

Icon positioned at the start.

Align: inline-end

Use align="inline-end" to place the addon after the input.

Icon positioned at the end.

Align: block-start

Use align="block-start" to place the addon above the input or textarea, like a header. The group grows to fit.

Full Name

Header positioned above the input.

script.js

Header positioned above the textarea.

Align: block-end

Use align="block-end" to place the addon below the input or textarea, like a footer.

USD

Footer positioned below the input.

0/280

Footer positioned below the textarea.

Icon

Put lucide-react icons in an InputGroupAddon; they size to 16px and take the muted foreground color. One addon can hold several icons.

Text

Use InputGroupText for prefixes, suffixes, units and helper text such as a character count.

$
USD
https://
.com
@company.com
120 characters left

Button

InputGroupButton is a compact Button for addons. It defaults to ghost at size xs, and also comes in sm, icon-xs and icon-sm. It can trigger a Popover.

https://

Kbd

Show a keyboard shortcut with a Kbd in an inline-end addon.

โŒ˜K

Dropdown

Use an InputGroupButton as the DropdownMenuTrigger to attach a menu to the field.

Spinner

Put a Spinner in an addon to show that a search or save is in progress.

Saving...
Please wait...

Textarea

InputGroupTextarea works with block addons for editor-style fields. Add border-b or border-t to an addon to separate it from the text.

Line 1, Column 1
script.js

Custom Input

Add data-slot="input-group-control" to your own input so the group shows its focus ring. This one is a plain textarea that grows with its content using field-sizing-content.

Installation

npx shadcn@latest add @refer/input-group

Usage in the apps

Which apps install this component, whether their copy matches the registry, and which files import it.

PortalIn sync3 files
ArgusNot installedNot imported
LandingNot installedNot imported
PartnersNot installedNot imported

Imported by 3 files across the apps. From olympus-backend@2ee40d05e, Oct 26, 2026. โ€œIn syncโ€ means the app's copy matches this registry; refresh with npm run usage:build.