kbd

Keyboard keys combined with icons.

Keyboard keys combined with icons.

Загрузка превью…

src/kbd/c-kbd-3.vue

<!--
  Расхождение с апстримом: `IconPlaceholder` (dev-обвязка сайта ReUI,
  завязанная на localStorage/lazy import пакета иконок) заменена инлайновым
  `<svg>` — тот же приём, что и в `rating`/`ui-checkbox`/`filters`
  (см. docs/PORTING.md §5 "Адаптированные эталоны"). Пути — lucide-react
  v0.545.0 "arrow-left" и "circle-dashed".
-->
<script setup lang="ts">
import { Kbd, KbdGroup } from "@/components/ui/kbd"
</script>

<template>
  <div class="flex items-center justify-center">
    <KbdGroup>
      <Kbd>
        <svg
          xmlns="http://www.w3.org/2000/svg"
          width="24"
          height="24"
          viewBox="0 0 24 24"
          fill="none"
          stroke="currentColor"
          stroke-width="2"
          stroke-linecap="round"
          stroke-linejoin="round"
          class="lucide lucide-arrow-left"
        >
          <path d="m12 19-7-7 7-7" />
          <path d="M19 12H5" />
        </svg>
        Left
      </Kbd>
      <Kbd>
        <svg
          xmlns="http://www.w3.org/2000/svg"
          width="24"
          height="24"
          viewBox="0 0 24 24"
          fill="none"
          stroke="currentColor"
          stroke-width="2"
          stroke-linecap="round"
          stroke-linejoin="round"
          class="lucide lucide-circle-dashed"
        >
          <path d="M10.1 2.182a10 10 0 0 1 3.8 0" />
          <path d="M13.9 21.818a10 10 0 0 1-3.8 0" />
          <path d="M17.609 3.721a10 10 0 0 1 2.69 2.7" />
          <path d="M2.182 13.9a10 10 0 0 1 0-3.8" />
          <path d="M20.279 17.609a10 10 0 0 1-2.7 2.69" />
          <path d="M21.818 10.1a10 10 0 0 1 0 3.8" />
          <path d="M3.721 6.391a10 10 0 0 1 2.7-2.69" />
          <path d="M6.391 20.279a10 10 0 0 1-2.69-2.7" />
        </svg>
        Voice Enabled
      </Kbd>
    </KbdGroup>
  </div>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-kbd-3.json

Зависимости реестра

Источник: порт из ReUI (Keenthemes, MIT)