# M random letter swap 1

> Navigation links — each link shuffles 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-random-letter-swap-1).

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

## Install

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

## Files

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

```tsx
"use client";

import { RandomLetterSwap } from "@/registry/default/motion/random-letter-swap";

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

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