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
- Things that belong inside the field — a search icon, a
⌘Khint — are Input's own#prefix/#suffix. A button that isn't attached to the field is just a Button beside it. sizesets the group's height; give the control inside the samesizeso its text matches.- The group renders a
<fieldset>, sodisabledreally disables every control inside it, not just the look.
Usage
ts
import { BlessInputGroup } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
size | "md" | "sm" | "lg" | "md" | |
disabled | boolean | — |
Slots
| Name | Scope | Description |
|---|---|---|
prefix | — | |
default | — | |
suffix | — |