Sean Hello

Kbd

Component 4

About

Displays keyboard input or shortcut keys with customizable styles and sizes.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Kbd to your project and fits it to your theme.

Code

How Kbd is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Kbd } from '@/components/ui/kbd-1';
import { ArrowDown, ArrowUp, Command } from 'lucide-react';

export default function ButtonDemo() {
  return (
    <div className="flex flex-col items-center gap-4">
      <div className="flex items-center gap-4">
        <Kbd size="xs">
          <ArrowUp />
        </Kbd>
        <Kbd size="xs">
          <ArrowDown />
        </Kbd>
        <Kbd size="xs">space</Kbd>
        <Kbd size="xs">
          <Command /> +K
        </Kbd>
      </div>

      <div className="flex items-center gap-4">
        <Kbd size="sm">
          <ArrowUp />
        </Kbd>
        <Kbd size="sm">
          <ArrowDown />
        </Kbd>
        <Kbd size="sm">space</Kbd>
        <Kbd size="sm">
          <Command /> +K
        </Kbd>
      </div>

      <div className="flex items-center gap-4">
        <Kbd>
          <ArrowUp />
        </Kbd>
        <Kbd>
          <ArrowDown />
        </Kbd>
        <Kbd>space</Kbd>
        <Kbd>
          <Command /> +K
        </Kbd>
      </div>
    </div>
  );
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.3K
  • Line Charts 9

    Line Charts 9

    637
  • Alert

    Alert

    492
  • Area Charts 1

    Area Charts 1

    385
  • Line Charts 6

    Line Charts 6

    384
  • Scroll Area

    Scroll Area

    376
  • Area Charts 2

    Area Charts 2

    317
  • Navigation Menu

    Navigation Menu

    305