Search components
Find a component by name
Input Group
Input or textarea with inline/block addons, buttons and text.
Align: inline-start
Use align="inline-start" on InputGroupAddon to place the addon before the input. This is the default.
Align: inline-end
Use align="inline-end" to place the addon after the input.
Align: block-start
Use align="block-start" to place the addon above the input or textarea, like a header. The group grows to fit.
Align: block-end
Use align="block-end" to place the addon below the input or textarea, like a footer.
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.
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.
Kbd
Show a keyboard shortcut with a Kbd in an inline-end addon.
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.
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.
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-groupUsage in the apps
Which apps install this component, whether their copy matches the registry, and which files import it.
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.