9.2k

Input Group

A flexible component for grouping inputs with addons, buttons, and other elements.

Installation

Usage

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.

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.

Examples

With End Icon

With Start Text

With End Text

With Start and End Text

With Tooltip

With Icon Button

With Button

With Badge

With Keyboard Shortcut

With Inner Label

Small Size

Large Size

Disabled

Loading

With Number Field

With Textarea

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).