# M letter swap hover 1

> Navigation links — each link swaps independently on hover

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/m-letter-swap-hover-1).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-letter-swap-hover-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-letter-swap-hover-1-light-eabae55c716eb425.png
- Registry item: https://ui.cnippet.dev/r/m-letter-swap-hover-1.json
- Categories: letter swap hover
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-letter-swap-hover-1.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/letter-swap-hover`

## Files

### `registry/default/motion-variants/m-letter-swap-hover-1.tsx`

```tsx
"use client";

import { LetterSwapHover } from "@/registry/default/motion/letter-swap-hover";

const links = ["Home", "Work", "About", "Blog", "Contact"];

export default function LetterSwapHoverNav() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <nav className="flex items-center gap-8">
        {links.map((link) => (
          <LetterSwapHover
            className="cursor-pointer font-medium text-muted-foreground text-sm hover:text-foreground"
            key={link}
            label={link}
            staggerDuration={0.03}
            transition={{ duration: 0.5, type: "spring" }}
          />
        ))}
      </nav>
    </div>
  );
}
```
