# M text along path 2

> Wave path — text flows along a sinusoidal wave in auto mode

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/m-text-along-path-2).

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

## Install

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

## Files

### `registry/default/motion-variants/m-text-along-path-2.tsx`

```tsx
"use client";
import { TextAlongPath } from "@/registry/default/motion/text-along-path";

export default function TextAlongPathWave() {
  return (
    <div className="flex min-h-50 items-center justify-center px-4">
      <div className="w-full max-w-md">
        <TextAlongPath
          animationType="auto"
          duration={6}
          height="80px"
          path="M 0,50 Q 25,10 50,50 Q 75,90 100,50"
          showPath={false}
          text="Text flowing along a wave path • animated • "
          textClassName="text-[5.5px] fill-primary font-semibold"
          viewBox="0 0 100 100"
          width="100%"
        />
      </div>
    </div>
  );
}
```
