# InputGroup

Combines an input with icons, text, or actions in one visual control. Use it when an adornment clarifies the value or provides a closely related action.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-inputgroup--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/inputs), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=18677-11182)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### InputGroup

Also takes the attributes of the HTML element it renders.

### InputGroupAddon

| Variant | Values | Default |
| --- | --- | --- |
| `align` | `inline-start`, `inline-end`, `block-start`, `block-end` | `inline-start` |

Also takes the attributes of the HTML element it renders.

### InputGroupButton

| Variant | Values | Default |
| --- | --- | --- |
| `variant` | `default`, `secondary`, `destructive`, `outline`, `ghost`, `link` | `ghost` |
| `size` | `xs`, `sm`, `icon-xs`, `icon-sm` | `xs` |
| `type` | `button`, `submit`, `reset` | `button` |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `loading` | `boolean` |  | Shows a spinner and prevents interaction while keeping the variant's resting colors. |

Also takes the props of `@base-ui/react/button`.

### InputGroupText

Also takes the attributes of the HTML element it renders.

### InputGroupInput

Also takes the attributes of the HTML element it renders.

### InputGroupTextarea

Also takes the attributes of the HTML element it renders.
