# M text loop 1

> Looping adjectives — cycles benefit words inline in a heading

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

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

## Install

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

## Files

### `registry/default/motion-variants/m-text-loop-1.tsx`

```tsx
import { TextLoop } from "@/registry/default/motion/text-loop";

export default function TextLoopHeading() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <h1 className="text-center font-bold text-4xl text-foreground tracking-tight sm:text-5xl">
        Components that are{" "}
        <TextLoop
          className="text-primary"
          interval={2.5}
          transition={{ duration: 0.4, ease: "easeInOut" }}
        >
          <span>beautiful</span>
          <span>accessible</span>
          <span>composable</span>
          <span>fast</span>
        </TextLoop>
      </h1>
    </div>
  );
}
```
