Button Group / 按钮组
展示一组具备相关性的按钮。
基础的
变体
设置组内所有按钮的类型或样式。
大小
垂直的
禁用
禁用组内所有的按钮。
APIs / 接口文档
ButtonGroup.Props
属性 | 描述 | 类型 | 推荐值 | 默认 |
---|---|---|---|---|
type | 按钮类型 | ButtonTypes | ButtonTypes | default |
ghost | 相反色彩模式的按钮 | boolean | - | false |
vertical | 以垂直方式显示所有按钮 | boolean | - | false |
disabled | 是否禁用所有按钮 | boolean | - | false |
... | 原生属性 | ButtonHTMLAttributes | 'id', 'className', ... | - |
ButtonTypes
type ButtonTypes =
| 'default'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'abort'
| 'secondary-light'
| 'success-light'
| 'warning-light'
| 'error-light'
文档贡献者