Input Group

Combine input fields with buttons, icons, or text for enhanced functionality

Preview

12 results
https://
52% used

Installation

Usage

Examples

Password Toggle

Use InputGroupButton to create a visibility toggle for password fields.

With Suffix

Add unit labels or currency codes using align="inline-end".

USD
kg

Keyboard Shortcut

Display keyboard shortcuts using the Kbd component inside an addon.

⌘K

Validation State

Use aria-invalid="true" on the input to show error styling on the group.

API Reference

The Input Group is a custom layout component for combining inputs with addons. All props listed below are custom to this implementation.

Props

InputGroup

Container that combines inputs with addons. Renders a div with role="group". Accepts standard div props.

InputGroupAddon

Container for icons, text, or buttons positioned relative to the input.

Prop

InputGroupButton

Styled button for use inside addons. Wraps the Button component with size variants optimized for input groups. Accepts all Button props except size.

Prop

InputGroupText

Styled text container for labels or static content inside addons. Renders a span. Accepts standard span props.

InputGroupInput

Styled input for use inside the group. Wraps the Input component with transparent styling. Accepts all Input props.

InputGroupTextarea

Styled textarea for multi-line inputs. Wraps the Textarea component with transparent styling. Accepts all Textarea props.