Files
heroui-vue/apps/docs/demos/input-group-with-keyboard-shortcut.vue
T

26 lines
575 B
Vue

<script setup lang="ts">
import {
InputGroup,
InputGroupInput,
InputGroupSuffix,
Kbd,
KbdAbbr,
KbdContent,
TextField,
} from "@heroui-vue/components";
</script>
<template>
<TextField aria-label="命令" class="w-full max-w-[280px]" name="command">
<InputGroup>
<InputGroupInput class="w-full max-w-[280px]" placeholder="命令" />
<InputGroupSuffix class="pe-2">
<Kbd>
<KbdAbbr key-value="command" />
<KbdContent>K</KbdContent>
</Kbd>
</InputGroupSuffix>
</InputGroup>
</TextField>
</template>