Are you an LLM? You can read better optimized documentation at /components/ka-button.md for this page in Markdown format
KaButton 按钮
包含 KaButton 和 KaButtonGroup 两个组件。
KaButton Props
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| variant | 按钮类型 | 'default' | 'link' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'default' |
| size | 按钮尺寸 | 'default' | 'sm' | 'lg' | 'icon' | 'default' |
| class | 自定义类名 | string | - |
| disabled | 是否禁用 | boolean | false |
| loading | 是否加载中 | boolean | false |
KaButton Slots
| 插槽名 | 说明 |
|---|---|
| default | 自定义默认内容 |
KaButtonGroup Props
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| vertical | 是否垂直 | boolean | false |
KaButtonGroup Slots
| 插槽名 | 说明 |
|---|---|
| default | 自定义默认内容 |