# Input Group
A flexible component for grouping inputs with addons, buttons, and other elements.
## Installation
Start from a Svelte 5 application, then install the component package, shared theme, and Bits UI peer:
```bash
pnpm add coss-svelte @coss-svelte/theme bits-ui
```
Import `@coss-svelte/theme/style-coss.css` after Tailwind from the application's global stylesheet.
## Usage
```svelte
```
## Anatomy
- `InputGroup`
- `InputGroupAddon`
- `InputGroupInput`
- `InputGroupText`
- `InputGroupTextarea`
## API Reference
### InputGroup
A flexible component for grouping inputs with addons, buttons, and other elements.
**Composition and refs**
- `children: Snippet<[]>`
Inherits from [Svelte component attributes](https://svelte.dev/docs/svelte/basic-markup#Attributes).
### InputGroupAddon
Renders supporting content attached to an input group.
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `align` | `"inline-start" \| "inline-end" \| "block-start" \| "block-end" \| "center"` | `"inline-start"` | Positions the addon within an input group. |
**Composition and refs**
- `children: Snippet<[]>`
Inherits from [Svelte component attributes](https://svelte.dev/docs/svelte/basic-markup#Attributes).
### InputGroupInput
Renders the input field for the parent component.
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `type` | `HTMLInputTypeAttribute \| null` | `"text"` | Behavior, selection, or HTML type passed to the underlying control. |
**Composition and refs**
- `children: Snippet<[]>`
Inherits from [Svelte attributes](https://svelte.dev/docs/svelte/basic-markup#Attributes).
### InputGroupText
Renders text content inside the parent component.
**Composition and refs**
- `children: Snippet<[]>`
Inherits from [Svelte component attributes](https://svelte.dev/docs/svelte/basic-markup#Attributes).
### InputGroupTextarea
Renders a multiline input inside the parent component.
**Composition and refs**
- `children: Snippet<[]>`
Inherits from [Svelte