# Items with keyboard shortcuts

> Items with keyboard shortcuts

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-item-7).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-item-7
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-item-7-light-969f934c08b85793.png
- Registry item: https://reui.io/r/new-york-v4/c-item-7.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-item-7.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: `item`, `kbd`

## Files

### `c-item-7.tsx`

```tsx
import {
  Item,
  ItemActions,
  ItemContent,
  ItemMedia,
  ItemTitle,
} from "@/components/ui/item"
import { Kbd } from "@/components/ui/kbd"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

const commands = [
  {
    icon: (
      <IconPlaceholder
        lucide="SearchIcon"
        tabler="IconSearch"
        hugeicons="Search01Icon"
        phosphor="MagnifyingGlassIcon"
        remixicon="RiSearchLine"
      />
    ),
    label: "Search",
    shortcut: "⌘K",
  },
  {
    icon: (
      <IconPlaceholder
        lucide="PlusIcon"
        tabler="IconPlus"
        hugeicons="PlusSignIcon"
        phosphor="PlusIcon"
        remixicon="RiAddLine"
      />
    ),
    label: "New File",
    shortcut: "⌘N",
  },
  {
    icon: (
      <IconPlaceholder
        lucide="SaveIcon"
        tabler="IconDeviceFloppy"
        hugeicons="FloppyDiskIcon"
        phosphor="FloppyDiskIcon"
        remixicon="RiSaveLine"
      />
    ),
    label: "Save",
    shortcut: "⌘S",
  },
  {
    icon: (
      <IconPlaceholder
        lucide="SettingsIcon"
        tabler="IconSettings"
        hugeicons="SettingsIcon"
        phosphor="GearIcon"
        remixicon="RiSettings3Line"
      />
    ),
    label: "Settings",
    shortcut: "⌘,",
  },
  {
    icon: (
      <IconPlaceholder
        lucide="LogOutIcon"
        tabler="IconLogout"
        hugeicons="LogoutSquare01Icon"
        phosphor="SignOutIcon"
        remixicon="RiLogoutBoxRLine"
      />
    ),
    label: "Sign Out",
    shortcut: "⌘Q",
  },
]

export function Pattern() {
  return (
    <div className="mx-auto flex w-full max-w-64 flex-col gap-0.5">
      {commands.map((cmd) => (
        <Item key={cmd.label} render={<a href="#" />} size="xs">
          <ItemMedia variant="icon">{cmd.icon}</ItemMedia>
          <ItemContent>
            <ItemTitle>{cmd.label}</ItemTitle>
          </ItemContent>
          <ItemActions>
            <Kbd>{cmd.shortcut}</Kbd>
          </ItemActions>
        </Item>
      ))}
    </div>
  )
}
```
