Tech Text
Staggered technical headline reveal that frames each word inside crisp engineering corner brackets before locking into sharp typographic focus.
#typography#reveal#hero#blueprint
PRECISION MOTION
Customize
#A855F7
70ms
Corner Reticles
Uppercase
Installation
$pnpm dlx yourbrand@latest add @yourbrand/TechText-TS-TWUsage (synced with live props)
<TechText
text="PRECISION MOTION"
accentColor="#A855F7"
speed={70}
showReticles
uppercase
/>Source Code
TechText.tsx"use client";
import React from "react";
export interface TechTextProps {
text?: string;
accentColor?: string;
speed?: number;
showReticles?: boolean;
uppercase?: boolean;
}
export function TechText({
text = "PRECISION MOTION",
accentColor = "#A855F7",
speed = 70,
showReticles = true,
uppercase = true,
}: TechTextProps) {
const chars = Array.from(uppercase ? text.toUpperCase() : text);
return (
<div className="relative inline-flex flex-wrap items-center gap-0.5 px-5 py-3 font-mono text-3xl font-semibold tracking-tight text-white">
{showReticles && (
<>
<span className="pointer-events-none absolute left-0 top-0 h-3 w-3 border-l-2 border-t-2" style={{ borderColor: accentColor }} />
<span className="pointer-events-none absolute right-0 top-0 h-3 w-3 border-r-2 border-t-2" style={{ borderColor: accentColor }} />
<span className="pointer-events-none absolute bottom-0 left-0 h-3 w-3 border-b-2 border-l-2" style={{ borderColor: accentColor }} />
<span className="pointer-events-none absolute bottom-0 right-0 h-3 w-3 border-b-2 border-r-2" style={{ borderColor: accentColor }} />
</>
)}
{chars.map((char, i) => (
<span
key={i}
className="inline-block transition-all duration-500"
style={{ transitionDelay: `${i * speed}ms` }}
>
{char === " " ? "\u00A0" : char}
</span>
))}
</div>
);
}
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "PRECISION MOTION" | Headline text rendered inside the technical frame. |
| accentColor | string (hex) | "#A855F7" | Corner reticle and highlight stroke hex. |
| speed | number | 70 | Delay between consecutive glyph reveals. |
| showReticles | boolean | true | Display technical crosshair brackets. |
| uppercase | boolean | true | Transform characters to uppercase tracking. |