Dimmed copy with a soft warm spotlight that trails your pointer, bringing the words underneath to full contrast and uncovering a line that isn't there otherwise; on touch, or once you leave, the light drifts on a slow path of its own.
akaspotlight·flashlight·text reveal
Run this in any project set up for the shadcn CLI. It copies the Spotlight Text source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/spotlight-text.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { SpotlightText } from "@/components/spotlight-text";
export default function Page() {
return <SpotlightText />;
}A free React motion component in the Cursor collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Spotlight Text source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| childrenrequired | ReactNode | — |
| secret | ReactNode | — |
| radius | number | 130 |
| dim | number | 0.4 |
| className | string | — |