Use InputGroupInput or InputGroupTextarea in the group. InputGroupAddon align places each add-on.
project-search.tsx
InputGroup
<div>InputGroupAddon
<div>InputGroupText
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
InputGroupButton
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| rounded | "default""full" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | — | |||||
| class | string | — | |||||
| size | "icon-sm""icon-xs""sm""xs" | — | |||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
InputGroupInput
<input>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| rounded | "default""full" | — | |
| size | "default""lg""sm""xs" | — | |
From Base UIInputBase UI docs | |||
| on | — | Callback fired when the value changes. Use when controlled. | |
| default | string | number | readonly string[] | — | The default value of the input. Use when uncontrolled. |
| value | string | number | readonly string[] | — | The value of the input. Use when controlled. |
| ...props | <input> attributes | — | Every other attribute goes to the <input>, with a ref. |
InputGroupTextarea
<input>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| size | "default""lg""sm" | — | The padding of the box: sm, default, or lg (the height follows the text). |
From Base UIField.ControlBase UI docs | |||
| on | — | Callback fired when the value changes. Use when controlled. | |
| ...props | <input> attributes | — | Every other attribute goes to the <input>, with a ref. |
| Tab | Moves focus to the control, then to each button in an add-on. |
|---|
Built with
Installs with Input Group





