Hyper Text

Motion

A React text effect that scrambles characters through random glyphs and settles them left to right on mount or hover, in monospace so the width never jumps.

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

Installation#

bash
npx shadcn@latest add @minidev/hyper-text

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/hyper-text.json

Usage#

tsx
import { HyperText } from "@/components/ui/hyper-text"

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

API reference#

HyperText props
PropTypeDefault
textstring"Close the books in 24 hours"
durationnumber1100
charactersstring"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789...
trigger"mount" | "hover" | "both""both"
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components