Getting Started
Foundations
Components
Search for a command to run...
Input groups enhance standard text inputs by attaching supplementary elements to the start or end of the input field. These additions can include action buttons, descriptive text, icons, or labels that provide context or functionality related to the input.
Common use cases include search inputs with search buttons, URL inputs with protocol prefixes, price inputs with currency symbols, or any input that benefits from contextual actions or information. The component handles focus states, validation styling, and maintains proper accessibility throughout.
import { InputGroup } from "@strongtie/design-system/input-group"This module exports the following components:
InputGroupInputGroupAddonInputGroupButtonInputGroupTextInputGroupInputInputGroupTextarea<InputGroupAddon>| Prop | Type | Default | Description |
|---|---|---|---|
align | "inline-start" | "inline-end" | "block-start" | "block-end" | null | inline-start |
<InputGroupButton>| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "icon-sm" | "xs" | "icon-xs" | null | xs | |
variant | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | ghost |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
input-groupEnsure proper accessibility attributes are added when implementing this component.