button-group
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
customStyles | -- | { [key: string]: string; } | {} | |
direction | direction | "horizontal" | "vertical" | "horizontal" | |
group | group | string | "" | |
spacing | spacing | string | "5px" |
Example Usage
1. 基本按钮(默认状态)
展示一个最基本的按钮,依据 horizontal, spacing 和 customStyles 来调整外观。
2. 不同方向的按钮
展示不同颜色的按钮,涵盖 primary, success, info, warning, danger, ghost。