feat: add Separator Kbd and Chip components

This commit is contained in:
maoyingjie
2026-10-21 18:35:24 +08:00
parent 3d05fea7bd
commit 3515a47f5e
51 changed files with 2813 additions and 21 deletions
@@ -0,0 +1,41 @@
<script setup lang="ts">
import { Kbd, KbdAbbr, KbdContent } from "@heroui-vue/components";
</script>
<template>
<div class="space-y-3">
<div class="rounded-lg bg-surface p-4">
<h4 class="mb-2 text-sm font-semibold">快捷操作</h4>
<ul class="space-y-2 text-sm">
<li>
• 打开搜索:
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>K</KbdContent>
</Kbd>
</li>
<li>
• 切换侧边栏:
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>B</KbdContent>
</Kbd>
</li>
<li>
• 新建文件:
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>N</KbdContent>
</Kbd>
</li>
<li>
• 快速保存:
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>S</KbdContent>
</Kbd>
</li>
</ul>
</div>
</div>
</template>