Skip to content

Extruded Text

Solid dimensional type that tilts toward the pointer.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import ExtrudedText from "./ExtrudedText";
export default function Example() {
return (
<ExtrudedText
text={"DEPTH"}
color={"#eee5d7"}
sideColor={"#756772"}
depth={16}
rotateX={14}
rotateY={-16}
interactive={true}
style={{
"fontSize": 84,
"letterSpacing": "-.055em"
}}
/>
);
}

Using Extruded Text

Use a short heading with enough surrounding space for its depth. color defines the face and sideColor defines the extrusion.

Set rotateX and rotateY for the resting angle. Turn interactive off when the text should hold that angle instead of responding to the pointer.

Props

NameTypeRequiredDefaultDescription
textstringNo""Text to render as a dimensional object. It is announced only once.
colorstringNo"#eee5d7"Front face colour.
sideColorstringNo"#756772"Extruded edge colour.
depthnumberNo12Depth in pixels, built from 1 to 24 layers.
rotateXnumberNo14Resting vertical tilt in degrees.
rotateYnumberNo-16Resting horizontal tilt in degrees.
interactivebooleanNotrueAdd pointer-controlled rotation. Reduced-motion users see static flat text.
classNamestringNo""Additional CSS classes, merged with the component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing and visual overrides.

Related components

Reflection Text

Text Effects

Crisp typography meets a soft, fading reflection beneath the baseline.

Morphing Words

Text Effects

Words dissolve through a soft blur while the headline keeps its width.

Dot Matrix Text

Text Effects

Amber pinpoints form a crisp matrix display with a soft travelling pulse.

Scan Text

Text Effects

A warm scanning light brings a dim headline into focus.