# M letter 3d swap 2

> CTA buttons — filled and outlined buttons with opposite rotateDirection values

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

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

## Install

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

## Files

### `registry/default/motion-variants/m-letter-3d-swap-2.tsx`

```tsx
"use client";

import { Letter3DSwap } from "@/registry/default/motion/letter-3d-swap";

export default function Letter3DSwapButtons() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-4 px-6">
      <button
        className="inline-flex rounded-full bg-foreground px-7 py-3 font-semibold text-background text-base"
        type="button"
      >
        <Letter3DSwap
          frontFaceClassName="text-background"
          rotateDirection="bottom"
          secondFaceClassName="text-background/70"
          staggerDuration={0.03}
          transition={{ damping: 24, stiffness: 300, type: "spring" }}
        >
          Get started
        </Letter3DSwap>
      </button>
      <button
        className="inline-flex rounded-full border border-border px-7 py-3 font-semibold text-base text-foreground"
        type="button"
      >
        <Letter3DSwap
          frontFaceClassName="text-foreground"
          rotateDirection="top"
          secondFaceClassName="text-muted-foreground"
          staggerDuration={0.03}
          staggerFrom="last"
          transition={{ damping: 24, stiffness: 300, type: "spring" }}
        >
          View docs
        </Letter3DSwap>
      </button>
    </div>
  );
}
```
