# Input Group
> A text input with a prefix, a suffix, or both.
Source: https://shellui.dev/docs/v0.4/components/form/input-group
`InputGroup` is **new in v0.4**. It renders an input inside one bordered field with optional `Prefix` and `Suffix` slots, for units, protocols, currency symbols or icons.
## Installation
```bash
shellui add input-group
```
## Usage
### Prefix and suffix
```razor
@code {
private string? website;
}
```
### Number with units
`Type` is passed to the ``, so `number`, `email`, `search` and the other HTML input types work.
```razor
$USD
@code {
private string? price;
}
```
### Icons and symbols
A slot takes any markup. In Razor, write a literal `@` as `@@`.
```razor
```
## API Reference
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `Value` | `string?` | `null` | The input's value; use `@bind-Value` |
| `ValueChanged` | `EventCallback` | - | Fires when the value changes |
| `Type` | `string` | `"text"` | HTML input type |
| `Placeholder` | `string?` | `null` | Placeholder text |
| `Disabled` | `bool` | `false` | Disables the input |
| `Prefix` | `RenderFragment?` | `null` | Content before the input |
| `Suffix` | `RenderFragment?` | `null` | Content after the input |
| `Class` | `string?` | `null` | Additional CSS classes |
Other attributes, such as `id`, `name` or `aria-label`, are passed to the ``.
## Accessibility
- The prefix and suffix are plain text next to a native ``; pair the field with a `Label`, or pass `aria-label`
- The focus ring is drawn around the whole group