# M random letter swap 2

> CTA buttons — two buttons with reverse prop contrast for visual distinction

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

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

## Files

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

```tsx
"use client";

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

export default function RandomLetterSwapButtons() {
  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-base"
        type="button"
      >
        <RandomLetterSwap
          className="text-background"
          label="Get started"
          reverse={false}
          staggerDuration={0.02}
          transition={{ duration: 0.65, type: "spring" }}
        />
      </button>
      <button
        className="inline-flex rounded-full border border-border px-7 py-3 font-semibold text-base text-foreground"
        type="button"
      >
        <RandomLetterSwap
          className="text-foreground"
          label="View source"
          staggerDuration={0.02}
          transition={{ duration: 0.65, type: "spring" }}
        />
      </button>
    </div>
  );
}
```
