Input Group
Add addons, buttons, and helper content to inputs.
Loading...
import { MailIcon } from "lucide-react"
import {Installation
pnpmnpmyarnbun
Usage
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupInput,
InputGroupText,
} from "@/components/ui/input-group"<InputGroup>
<InputGroupAddon>
<MailIcon />
</InputGroupAddon>
<InputGroupInput placeholder="Email" />
</InputGroup>Examples
With Text
Loading...
import {
InputGroup,
InputGroupAddon,With Button
Use align="inline-end" to position the addon at the end.
Loading...
import { SearchIcon } from "lucide-react"
import {API Reference
InputGroup
Main wrapper component with automatic focus and error state handling.
InputGroupAddon
InputGroupInput
Styled input component for use within InputGroup.
InputGroupButton
Button component styled for InputGroup context.
InputGroupText
Text element for displaying static content.