input-group
Input Group
An input or textarea with addons beside, above or below it, such as a search icon, a unit or a button that submits.
States: Default, Focus, Invalid
Parts
| Part | File | Does |
|---|---|---|
| InputGroup | InputGroup.vue | Groups an input with addons such as icons, buttons or text. |
| InputGroupAddon | InputGroupAddon.vue | Places an icon, text or button beside the input of its group. |
| InputGroupButton | InputGroupButton.vue | Lets the user act on the input of its group, such as submit it. |
| InputGroupInput | InputGroupInput.vue | Lets the user enter a single line of text inside the group. |
| InputGroupText | InputGroupText.vue | Shows fixed text, such as a unit or prefix, inside the group. |
| InputGroupTextarea | InputGroupTextarea.vue | Lets the user enter several lines of text inside the group. |
Anatomy
<InputGroup>
<InputGroupInput />
<InputGroupAddon>
<InputGroupButton />
</InputGroupAddon>
</InputGroup>Styling
| Part | Recipe |
|---|---|
| InputGroup | input-group |
| InputGroupAddon | input-group-addon |
| InputGroupButton | input-group-button |
| InputGroupInput | input-group-input |
| InputGroupText | input-group-text |
| InputGroupTextarea | input-group-textarea |
Install
Writes 8 files into components/ui/input-group/. For agents, npx @frontic/ui docs input-group prints this reference as markdown; the MCP server serves the same.
- npm packages
- class-variance-authority
- reka-ui
Built from
API reference
InputGroup InputGroup.vue
Groups an input with addons such as icons, buttons or text. Renders a <div>.
| Prop | Type | Default | |
|---|---|---|---|
| asChild | boolean | false | |
| as | AsTag | Component | 'div' | |
| class | ClassValue | — | |
| size | InputGroupSize | — | |
| Data attribute | Values | |
|---|---|---|
| data-size | 'md' | 'sm' | |
| Recipe input-group | Sets | |
|---|---|---|
| base: input-group | 16 properties · 9 inherited | |
| size: sm | 1 property | |
InputGroupAddon InputGroupAddon.vue
InputGroupButton InputGroupButton.vue
InputGroupInput InputGroupInput.vue
InputGroupText InputGroupText.vue
InputGroupTextarea InputGroupTextarea.vue
Example