用于组合自定义控制栏(controlbar)按钮的骨架组件。
| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
brandIcon |
boolean |
✅ | - | 图标是否需要品牌颜色 |
disabled |
boolean |
✅ | - | 按钮是否禁用 |
icon |
string |
✅ | - | 图标 |
iconPack |
IconPack |
❌ | defaultIconPack |
图标包 |
isLoading |
boolean |
✅ | - | 加载状态。如果为 true,将忽略当前图标并显示加载指示器(spinner) |
label |
string |
✅ | - | 按钮的标签 |
showWarning |
boolean |
✅ | - | 是否显示警告图标 |
size |
Size |
✅ | - | 尺寸 |
variant |
ControlBarVariant1 |
✅ | - | 变体 |
<!-- component.html -->
<rtk-controlbar-button></rtk-controlbar-button><!-- component.html -->
<rtk-controlbar-button
[brandIcon]="true"
[disabled]="true"
icon="example">
</rtk-controlbar-button>