InputGroup

Input field group with proximity hover and validation.

Installation

This component is primitive-agnostic — same source under both flavors.

Basic

Inspect

Multiple Fields

Inspect

Error State

Inspect
Please enter a valid email address.

API Reference — InputGroup

PropTypeDefaultDescription
childrenReactNode—InputField children.
axis"x" | "y" | "xy""y"Direction for proximity hover. Use "xy" for grid layouts.

API Reference — InputField

PropTypeDefaultDescription
labelstring—Label text above the input.
indexnumber—Position index within the group.
valuestring—Controlled input value.
onChange(value: string) => void—Called when the input value changes.
placeholderstring—Placeholder text.
iconIconComponent—Leading icon inside the input.
leadingContentReactNode—Content inside the field before the input.
trailingContentReactNode—Content inside the field after the input.
variant"ghost" | "filled""ghost"Optional subtle field fill at rest.
controlClassNamestring—Additional styles for the field container.
errorstring—Error message shown below the input.
disabledbooleanfalseDisables the input.