Hextech UI

Input Group

Live example

Input Group

@

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/input-group.json

API reference

These are the main Input Group options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
align (InputGroupAddon)inline-start | inline-end | block-start | block-endinline-start
size (InputGroupButton)small | medium | largesmall
variant (InputGroupButton)ButtonVarianttext

Composition notes

Compose InputGroupInput with inline addons, or InputGroupTextarea with block addons. Keep the input before addon actions in DOM order; align controls only the visual position. Use a real Button for actions, and keep a visible field label outside the group. The implementation reuses Group, Input, Textarea and Button.