# InputGroup

> Wraps an input with leading and trailing adornments.

- Category: [Inputs & forms](https://tarve.dev/docs.md#inputs)
- Import: `import { InputGroup } from "@tarve/core";`
- Props type: `InputGroupProps`
- Source: [packages/core/src/form-controls.ts:165](https://github.com/omarcosr/tarve/blob/main/packages/core/src/form-controls.ts#L165)

## Usage

```tsx title="InputGroup.tsx"
import { Icon, Input, InputGroup, Kbd } from "@tarve/core";

<InputGroup style={{ width: 320 }} prefix={<Icon name="search" />} suffix={<Kbd>/</Kbd>}>
  <Input placeholder="Search files" />
</InputGroup>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `disabled` | `boolean` | — |  |
| `prefix` | `Child` | — |  |
| `suffix` | `Child` | — |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [TextArea](https://tarve.dev/docs/components/TextArea.md) · Next: [InputOTP](https://tarve.dev/docs/components/InputOTP.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/InputGroup · Index for agents: https://tarve.dev/llms.txt
