Motoko UI Released — Explore the components

Text Shimmer

Metallic gradient sweep across text — a white shimmer like light on brushed metal.

Motoko UI

Installation

pnpm dlx shadcn@latest add @motokoui/text-shimmer

Usage

import { TextShimmer } from "@/components/ui/text-shimmer"
 
export default function Example() {
  return (
    <TextShimmer className="text-4xl font-semibold tracking-tight">
      Motoko UI
    </TextShimmer>
  )
}

A soft white band drifts across the glyphs via background-clip: text, driven by Motion’s useAnimationFrame — a continuous tile scroll with no cycle restart.

Props

PropTypeDefault
childrenReactNoderequired
durationnumber2.2
delaynumber0
classNamestring

Respects prefers-reduced-motion — the sweep freezes when motion is reduced.