# M random letter swap 3

> Tag chips — technology tags inside pill badges shuffle 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-3).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-random-letter-swap-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-random-letter-swap-3-light-9834938b0ad3d908.png
- Registry item: https://ui.cnippet.dev/r/m-random-letter-swap-3.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-3.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-3.tsx`

```tsx
"use client";

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

const tags = ["motion", "react", "tailwind", "typescript", "open-source"];

export default function RandomLetterSwapTags() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-5 px-6">
      <p className="text-muted-foreground text-sm">Hover a tag</p>
      <div className="flex flex-wrap justify-center gap-2">
        {tags.map((tag) => (
          <div
            className="rounded-full border border-border bg-card px-4 py-1.5 font-medium text-sm"
            key={tag}
          >
            <RandomLetterSwap
              className="text-foreground"
              label={tag}
              staggerDuration={0.018}
              transition={{ duration: 0.55, type: "spring" }}
            />
          </div>
        ))}
      </div>
    </div>
  );
}
```
