Skip to content

Input Group

Attaches icons, prefix text, buttons, or dropdowns directly to an input field, creating compact, all-in-one form controls.

5.4 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Features

Disabled State

Input group rendered in a disabled state with disabled addons.

API Reference

InputGroup

The main component that wraps inputs and addons.

InputGroupAddon

A container for addons like icons, text, buttons, and other elements. Can be positioned at the start or end (inline), or top or bottom (block) of the input.

For proper focus navigation, the InputGroupAddon component should be placed after the input in the DOM order.

InputGroupText

A text container component for displaying text content within an InputGroupAddon. Automatically styles text with muted foreground color and handles icon sizing.

InputGroupInput

A specialized input component for use within InputGroup. It's essentially an unstyled Input component that inherits styling from the parent InputGroup.

InputGroupTextarea

A specialized textarea component for use within InputGroup. It's essentially an unstyled Textarea component that inherits styling from the parent InputGroup.

InputGroupButton

A button styled specifically for embedding within an InputGroupAddon or InputGroup.

Examples

Input group with end icon
Input group with start text
Input group with end text
Input group with start and end text
Input group with number field
Input group with end tooltip
Input group with icon button
Input group with button
Input group with badge
Input group with keyboard shortcut
Input group with inner label
Small input group
Large input group
Input group with loading spinner
Input group with textarea
Input group with badge and menu
Mini editor built with input group and toggle
Input group with search icon
Input group with start tooltip
Input group with clear button
Search input group with loader and voice button
Input group with character counter
Password input with strength indicator
Code snippet input with language selector
Message composer with attachment buttons
Chat input with voice and send buttons