# V kbd 8

> Arrow key navigation display

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-kbd-8).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-kbd-8
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-kbd-8-light-0226ce6e371cdfe5.png
- Registry item: https://ui.cnippet.dev/r/v-kbd-8.json
- Categories: kbd
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-kbd-8.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/kbd`

## Files

### `registry/default/variants/v-kbd-8.tsx`

```tsx
import { Kbd } from "@/registry/default/ui/kbd";

const arrowKeys = [
  { key: "↑", label: "Up" },
  { key: "↓", label: "Down" },
  { key: "←", label: "Left" },
  { key: "→", label: "Right" },
];

export function Pattern() {
  return (
    <div className="flex flex-col items-center gap-3">
      <p className="text-muted-foreground text-xs">Navigate with arrow keys</p>
      <div className="flex flex-col items-center gap-1">
        <Kbd aria-label="Up arrow">↑</Kbd>
        <div className="flex gap-1">
          <Kbd aria-label="Left arrow">←</Kbd>
          <Kbd aria-label="Down arrow">↓</Kbd>
          <Kbd aria-label="Right arrow">→</Kbd>
        </div>
      </div>
      <div className="flex gap-3">
        {arrowKeys.map(({ key, label }) => (
          <div className="flex flex-col items-center gap-1" key={label}>
            <Kbd aria-label={`${label} arrow`}>{key}</Kbd>
            <span className="text-muted-foreground text-xs">{label}</span>
          </div>
        ))}
      </div>
    </div>
  );
}
```
