Appearance
InputGroup
Input ghép addon trước/sau.
ts
import { InputGroup, InputGroupAddon, InputGroupInput } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { InputGroup, InputGroupAddon, InputGroupInput } from "@minap/ui";
export function Example() {
return (
<>
<InputGroup>
<InputGroupAddon>@</InputGroupAddon>
<InputGroupInput placeholder="username" />
</InputGroup>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
className | string | — | Container của group |
Behavior
- Addon, nút, text phụ
- Input / Textarea trong nhóm
- Lan truyền trạng thái lỗi