kbd-demo

PreviousNext
Docs
takiexample

Preview

Loading preview…
registry/new-york/examples/kbd-demo.tsx
import { Kbd, KbdGroup } from "@/registry/new-york/ui/kbd"

export default function KbdDemo() {
  return (
    <div className="flex flex-col items-center gap-4">
      <KbdGroup>
        <Kbd>⌘</Kbd>
        <Kbd>⇧</Kbd>
        <Kbd>⌥</Kbd>
        <Kbd>⌃</Kbd>
      </KbdGroup>
      <KbdGroup>
        <Kbd>Ctrl</Kbd>
        <span>+</span>
        <Kbd>B</Kbd>
      </KbdGroup>
    </div>
  )
}

Installation

npx shadcn@latest add @taki/kbd-demo

Usage

import { KbdDemo } from "@/components/kbd-demo"
<KbdDemo />