Input Group

Combine an input or textarea with addons such as icons, buttons, or labels.

class-variance-authority

lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/input-group.json

Examples


Used to combine an input field with a dropdown selector for quick option selection.

Tooltip

Adds contextual information or guidance beside the input using a tooltip trigger.

Button

Pairs an input with an action button such as search, submit, or clear.

Label

Displays a descriptive label or info icon aligned with the input field.

Spinner

Shows a loading or processing state directly within the input group.


API Reference

InputGroupAddon

PropTypeDefault
aligninline-start,inline-end,block-start,block-endinline-start

InputGroupButton

PropTypeDefault
sizexs,sm,icon-xs,icon-smxs
variantstringghost
typestringbutton