Appearance
ButtonGroup
Nhóm các hành động Button liên quan với border dùng chung.
ts
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "@minap/ui";1
Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { Button, ButtonGroup } from "@minap/ui";
export function Example() {
return (
<>
<ButtonGroup>
<Button variant="outline">Left</Button>
<Button variant="outline">Right</Button>
</ButtonGroup>
</>
);
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
className | string | — | Class của container |
children | ReactNode | — | Thường là các Button anh em |
Behavior
- ButtonGroupSeparator
- ButtonGroupText
- Helper buttonGroupVariants