Gradient Text

Motion

Headline text filled with a slowly drifting gradient built from your accent tokens. A real text node for SEO and screen readers, still for reduced motion.

src/registry/premium/gradient-text.tsx/r/gradient-text.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/gradient-text.json

Usage#

tsx
import { GradientText } from "@/components/ui/gradient-text"

export function Example() {
  return <GradientText />
}

API reference#

GradientText props
PropTypeDefault
childrenReact.ReactNode"Ship the whole product"
as"span" | "h1" | "h2" | "h3" | "p""span"
durationnumber8
colorsstring[]-
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components