# M text along path 3

> Curved path with visible stroke — cubic Bézier with showPath for debugging

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-text-along-path-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-text-along-path-3-light-622684ca8fffc8a4.png
- Registry item: https://ui.cnippet.dev/r/m-text-along-path-3.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-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/text-along-path`

## Files

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

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

export default function TextAlongPathCurve() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="h-36 w-72">
        <TextAlongPath
          animationType="auto"
          duration={5}
          path="M 10,80 C 30,10 70,10 90,80"
          pathClassName="stroke-muted-foreground/30"
          showPath={true}
          text="Follow the curve • animated path text • "
          textAnchor="start"
          textClassName="text-[5px] fill-foreground font-medium"
          viewBox="0 0 100 100"
        />
      </div>
    </div>
  );
}
```
