ComponentServer-safe

Input Group

Combines a field with icons, labels and inline actions in one focus surface.

Installation

Preview

Work
rivelle.dev/

Usage

tsx
import { Mail } from "lucide-react"
import { InputGroup, InputGroupAddon, InputGroupInput } from "@/components/ui/input-group"

<InputGroup>
  <InputGroupAddon><Mail /></InputGroupAddon>
  <InputGroupInput placeholder="you@example.com" />
</InputGroup>

API reference

PropTypeDefaultDescription
align"inline-start" | "inline-end" | "block-start" | "block-end""inline-start"Places an addon around the input control.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.