---
title: "Input Group"
description: "An input with icons, text, buttons, or keyboard hints inside or beside it, for search boxes, URL fields, and inputs with actions."
plan: Free
docs: https://ui.edbn.me/docs/components/input-group
---

# Input Group

An input with icons, text, buttons, or keyboard hints inside or beside it, for search boxes, URL fields, and inputs with actions.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/input-group.json
```

## Dependencies
- npm: class-variance-authority@^0.7.1
- edbn: edbn-base, button, input, textarea

## Usage

```tsx examples/input-group-basic.tsx
"use client";
import { ArrowUp, Mail } from "lucide-react";
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
  InputGroupText,
  InputGroupTextarea,
} from "@/components/ui/input-group";

export default function InputGroupBasicPreview() {
  return (
    <div className="flex w-full max-w-compact flex-col gap-4">
      <InputGroup>
        <InputGroupAddon>
          <InputGroupText>
            <Mail />
          </InputGroupText>
        </InputGroupAddon>
        <InputGroupInput aria-label="Email" placeholder="you@example.com" />
      </InputGroup>
      <InputGroup variant="composer">
        <InputGroupTextarea
          rows={1}
          aria-label="Message"
          placeholder="Ask a follow-up"
        />
        <InputGroupAddon align="inline-end">
          <InputGroupButton
            variant="default"
            size="icon-sm"
            shape="round"
            aria-label="Send"
          >
            <ArrowUp />
          </InputGroupButton>
        </InputGroupAddon>
      </InputGroup>
    </div>
  );
}
```

## Files
- components/ui/input-group.tsx (193 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
