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
+42
View File
@@ -0,0 +1,42 @@
<script setup lang="ts">
import { Kbd, KbdAbbr } from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<div class="flex items-center gap-2">
<span class="text-sm text-muted">方向键:</span>
<div class="flex items-center gap-2">
<Kbd>
<KbdAbbr key-value="up" />
</Kbd>
<Kbd>
<KbdAbbr key-value="down" />
</Kbd>
<Kbd>
<KbdAbbr key-value="left" />
</Kbd>
<Kbd>
<KbdAbbr key-value="right" />
</Kbd>
</div>
</div>
<div class="flex items-center gap-2">
<span class="text-sm text-muted">页面导航:</span>
<div class="flex items-center gap-2">
<Kbd>
<KbdAbbr key-value="pageup" />
</Kbd>
<Kbd>
<KbdAbbr key-value="pagedown" />
</Kbd>
<Kbd>
<KbdAbbr key-value="home" />
</Kbd>
<Kbd>
<KbdAbbr key-value="end" />
</Kbd>
</div>
</div>
</div>
</template>