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.
React
Ready
Figma
Import
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea } from "@kela-systems/ui-components";This page has no live example yet. Storybook shows InputGroup in every state and theme.
Props
InputGroup
No props of its own. It also takes the attributes of the HTML element it renders.
InputGroupAddon
| Name | Default | Description |
|---|---|---|
align"inline-start" | "inline-end" | "block-start" | "block-end" | "inline-start" |
It also takes the attributes of the HTML element it renders.
InputGroupButton
| Name | Default | Description |
|---|---|---|
variant"default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "ghost" | |
size"xs" | "sm" | "icon-xs" | "icon-sm" | "xs" | |
type"button" | "submit" | "reset" | "button" | |
loadingboolean | Shows a spinner and prevents interaction while keeping the variant's resting colors. |
It also takes the props of Base UI's button.
InputGroupText
No props of its own. It also takes the attributes of the HTML element it renders.
InputGroupInput
No props of its own. It also takes the attributes of the HTML element it renders.
InputGroupTextarea
No props of its own. It also takes the attributes of the HTML element it renders.