Hewn
Components

Components

InputGroup

Text field with prefix and suffix affixes inside shared input chrome.

newfree

Install

@hewnui/ui · hewnui

Terminal
npm install @hewnui/ui
Terminal
pnpm add @hewnui/ui
Terminal
yarn add @hewnui/ui
Terminal
bun add @hewnui/ui
Terminal
npx hewnui@latest add input-group

Compose units, schemes, or icons beside an input without leaving the shared field surface. Concise prefix / suffix props cover most cases; compound parts support custom layouts.

Public marketing hostname.

Usage

TSX
import { InputGroup } from "@hewnui/ui";

<InputGroup label="Site" prefix="https://" suffix=".studio" placeholder="andruia" />

Compound API

TSX
<InputGroup label="Amount">
  <InputGroup.Prefix>$</InputGroup.Prefix>
  <InputGroup.Input placeholder="4,280" />
  <InputGroup.Suffix>USD</InputGroup.Suffix>
</InputGroup>

Variants

outline (default), filled, flushed, and glass.

States

  • Description helper text
  • Invalid + errorMessage
  • Disabled

Accessibility

  • Affixes are presentational; the input keeps the accessible name
  • Focus ring applies to the shared group surface

API reference

Props for InputGroup from @hewnui/ui/input-group. Generated from component types — not hand-written.

Prop

Type

On this page