# M text highlight 1

> Scroll triggered — key phrase highlights ltr on viewport entry

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

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

## Install

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

## Files

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

```tsx
"use client";

import { TextHighlight } from "@/registry/default/motion/text-highlight";

export default function TextHighlightInView() {
  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">
        Ship{" "}
        <TextHighlight
          highlightColor="hsl(262, 80%, 85%)"
          transition={{ bounce: 0, duration: 0.9, type: "spring" }}
          triggerType="inView"
        >
          production-ready
        </TextHighlight>{" "}
        animations in minutes
      </h2>
    </div>
  );
}
```
