InputGroup
freeInputGroup joins related fields and controls so they read as one input row.
Installation
Add this component with the NateUI CLI.
Examples
Addons
With Buttons
Button Group
Size
Mixed Controls
API
InputGroup is a compound component: InputGroup joins controls into one row and sizes the Addon, while InputGroup.Addon renders non-editable affix content. Set sizes on Button, Input, Select, or MultiValueInput directly.
InputGroup
InputGroup reads the props below and sizes the Addon.
| Prop | Description | Type | Default |
|---|---|---|---|
children | Inputs, buttons, selects, addons, or compatible controls rendered as one joined row. | ReactNode | - |
className | Class names applied to the group root. | string | - |
ref | Ref forwarded to the group root element. | Ref<HTMLDivElement> | - |
size | Control size for the group, applied to the Addon. | ControlSize | 'md' |
InputGroup.Addon
Addon reads the props below and renders a non-editable segment inside an InputGroup.
| Prop | Description | Type | Default |
|---|---|---|---|
children | Addon content, such as a unit, symbol, domain suffix, or short label. | ReactNode | - |
className | Class names applied to the addon root. | string | - |
ref | Ref forwarded to the addon root element. | Ref<HTMLDivElement> | - |
size | Control size for the addon. | ControlSize | 'md' |