Files
heroui-vue/apps/docs/demos/kbd-instructional-text.vue
T
2026-10-21 18:35:24 +08:00

42 lines
1023 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>