# M text gradient 2

> Inline word accent — single word with fast orange-to-green sweep inside static heading

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

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

## Install

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

## Files

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

```tsx
"use client";

import { TextGradient } from "@/registry/default/motion/text-gradient";

export default function TextGradientInline() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <h2 className="max-w-xl text-center font-bold text-3xl text-foreground tracking-tight sm:text-4xl">
        The fastest way to ship{" "}
        <TextGradient
          as="span"
          colors={["#f97316", "#eab308", "#22c55e", "#f97316"]}
          duration={3}
        >
          animated
        </TextGradient>{" "}
        interfaces
      </h2>
    </div>
  );
}
```
