InputGroup
InputGroup
Section titled “InputGroup”Category: Forms & inputs
<InputGroup aria-label="Search" attached> <Select aria-label="Field">…</Select> <TextInput aria-label="Query" placeholder="Search…" /> <Button>Go</Button></InputGroup>Install: @helix-ui/core
import { InputGroup } from '@helix-ui/core';status: stable · since: 0.1.0
Tags: composite, attached, input-row
Anatomy
Section titled “Anatomy”[ prefix ][ input ][ suffix ] └────── attached border (single radius) ───────┘Layout
Section titled “Layout”- display —
inline-flex - width —
fill - height —
content - intrinsicSize —
fills width, hugs content height - stackable —
false - fullBleed —
false
Visual
Section titled “Visual”A horizontal row of controls. With attached, children share a single rounded outer border and inner borders collapse, producing the classic “URL prefix + input + button” look.
| Name | Type | Default | Description |
|---|---|---|---|
attached |
boolean |
false |
Joins children with shared border (segmented look). |
...rest |
HTMLAttributes<HTMLDivElement> |
— | Native div attributes. |
- children — controls (TextInput, Button, IconButton, Select, etc.)
Tokens used
Section titled “Tokens used”space.2, radius.md
Accessibility
Section titled “Accessibility”Role: group
Notes
- Container is
role=\"group\"; provide aaria-labeldescribing the group’s purpose.
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
TextInput |
child |
Most common middle child. |
Button |
child |
Trailing action. |
Select |
child |
Leading or trailing. |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
URL field with copy button
Section titled “URL field with copy button”“attached input + button row”
<InputGroup attached> <TextInput value={url} isReadOnly /> <Button onClick={copy}>Copy</Button></InputGroup>