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

39 lines
774 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 } from "@heroui-vue/components";
</script>
<template>
<div class="space-y-3">
<p class="text-sm">
按
<Kbd>
<KbdAbbr key-value="enter" />
</Kbd>
确认,或按
<Kbd>
<KbdAbbr key-value="escape" />
</Kbd>
取消。
</p>
<p class="text-sm">
使用
<Kbd>
<KbdAbbr key-value="tab" />
</Kbd>
在表单字段间切换,使用
<Kbd>
<KbdAbbr key-value="shift" />
<KbdAbbr key-value="tab" />
</Kbd>
返回上一项。
</p>
<p class="text-sm">
按住
<Kbd>
<KbdAbbr key-value="space" />
</Kbd>
可临时启用平移模式。
</p>
</div>
</template>