Input Group
Groups related controls inside an input.
Installation
pnpm dlx shadcn@latest add @paneui/input-groupUsage
Composition
Examples
Behaviour
The group draws the well and the focus ring; the input inside is bare. Clicking an addon (not its buttons) focuses the input. Buttons inside are concentric with the well at every size.
InputGroup
Also accepts every prop of div.
- size= "default"
- "xs" | "sm" | "default" | "lg"
- Height (24 / 28 / 32 / 36px); also sizes buttons inside. Follows a sized
Field.
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "xs" | "sm" | "default" | "lg" | "default" | Height (24 / 28 / 32 / 36px); also sizes buttons inside. Follows a sized Field. |
InputGroupAddon
Also accepts every prop of div.
- align= "inline-start"
- "inline-start" | "inline-end" | "block-start" | "block-end"
- Where the addon sits. Block addons make the group a column.
| Prop | Type | Default | Description |
|---|---|---|---|
| align | "inline-start" | "inline-end" | "block-start" | "block-end" | "inline-start" | Where the addon sits. Block addons make the group a column. |
InputGroupButton
Also accepts every prop of Button.
- variant= "ghost"
- Button variant
- size= "xs"
- Button size
- Use
icon-xsfor an icon-only button.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | Button variant | "ghost" | |
| size | Button size | "xs" | Use icon-xs for an icon-only button. |