Skip to content

InputGroup ​

Shared surface: addons + any control

One control plus fixed pieces that share its plate: https:// before a domain, ¥ before a price, a unit select, a Go button. They read as one field, focus as one field, and disabled covers the lot.

Basic
https://
.com
¥
  • Things that belong inside the field — a search icon, a ⌘K hint — are Input's own #prefix / #suffix. A button that isn't attached to the field is just a Button beside it.
  • size sets the group's height; give the control inside the same size so its text matches.
  • The group renders a <fieldset>, so disabled really disables every control inside it, not just the look.

Usage ​

ts
import { BlessInputGroup } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
size"md" | "sm" | "lg""md"
disabledboolean—

Slots

NameScopeDescription
prefix—
default—
suffix—

Released under the MIT License. Character names and artwork belong to their owners.