A sweeping gradient band reveals text, then settles on your theme foreground color.
Design inspired by Dia Browser.
string | string[]
string[]
Dia palette (5 colors)
string
"var(--foreground)"
number
1.5
0
boolean
false
0.5
true
Click on the icon in the top right of the example preview to view the source code for specific variants.
This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.
import { DiaTextReveal } from "@/components/ui/dia-text-reveal"
export default function Page() { return ( <h1 className="font-serif text-4xl font-semibold"> <DiaTextReveal text="Spider UI" /> </h1> ) }