# M letter swap hover 2

> CTA buttons — filled and outlined buttons with opposite swap directions

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-2).

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

```tsx
"use client";

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

export default function LetterSwapHoverButton() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-4 px-6">
      <button
        className="group inline-flex items-center gap-2 rounded-full bg-foreground px-6 py-3 font-semibold text-background text-base"
        type="button"
      >
        <LetterSwapHover
          label="Get started"
          reverse={false}
          staggerDuration={0.025}
          transition={{ duration: 0.55, type: "spring" }}
        />
        <span aria-hidden="true">→</span>
      </button>
      <button
        className="group inline-flex items-center gap-2 rounded-full border border-border px-6 py-3 font-semibold text-base text-foreground"
        type="button"
      >
        <LetterSwapHover
          label="View docs"
          staggerDuration={0.025}
          transition={{ duration: 0.55, type: "spring" }}
        />
      </button>
    </div>
  );
}
```
