用于包裹多个 FaKbd 组件,展示组合按键的容器组件。
<template>
<FaKbdGroup>
<FaKbd>⌘</FaKbd>
<FaKbd>K</FaKbd>
</FaKbdGroup>
</template>| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
class | HTMLAttributes['class'] | - | 自定义 CSS 类 |
| 名称 | 说明 |
|---|---|
default | 包含的 FaKbd 组件 |
无
<template>
<FaKbdGroup>
<FaKbd>⌘</FaKbd>
<FaKbd>K</FaKbd>
</FaKbdGroup>
</template><template>
<FaKbdGroup>
<FaKbd>Ctrl</FaKbd>
<FaKbd>Shift</FaKbd>
<FaKbd>P</FaKbd>
</FaKbdGroup>
</template><template>
<FaKbdGroup>
<FaKbd>⌘</FaKbd>
<span class="text-muted-foreground">+</span>
<FaKbd>K</FaKbd>
</FaKbdGroup>
</template><template>
<table>
<tr>
<td>搜索</td>
<td><FaKbdGroup><FaKbd>⌘</FaKbd><FaKbd>K</FaKbd></FaKbdGroup></td>
</tr>
<tr>
<td>新建</td>
<td><FaKbdGroup><FaKbd>⌘</FaKbd><FaKbd>N</FaKbd></FaKbdGroup></td>
</tr>
</table>
</template>FaKbd,不建议单独使用FaKbd 会自动添加适当间距FaKbd 外,也可以放入其他内容(如分隔符)