Pricing
Get Started
  • Introduction
  • Installation
  • MCP Server
  • Saved
Site
  • Builder (Beta)
  • Pricing
  • Roadmap
  • Affiliates
Browse
  • All Components80 New
Text34
  • 3D Letter Swap
  • 3D Text Reveal
  • ASCII Ripple
  • Bending Marquee
  • Blur Highlight
  • Cipher RevealNew
  • Domino LetteringNew
  • Elastic LetteringNew
  • Ghost TypeNew
  • Glitch Text
  • Glyph LotteryNew
  • Gravity LettersNew
  • Label OrbitNew
  • Luminous TypeNew
  • Mesh LetteringNew
  • Orbital TypeNew
  • Particle Text
  • Ribbon TypeNew
  • Rising InkNew
  • Shatter TypeNew
  • Signal TypeNew
  • Smoke TypeNew
  • Speeding Text
  • Spring LetteringNew
  • Staggered Text
  • Stipple TypeNew
  • Tessera TrailNew
  • Text Cube
  • Text MorphNew
  • Text Path
  • Text Scatter
  • Typographic WallNew
  • Vapor TypeNew
  • Wave LetteringNew
Backgrounds98
  • ASCII Tiles
  • Ascii Waves
  • Astral ShellNew
  • Aura Blob
  • Aurora Beam
  • Aurora Blur
  • Axial BeamNew
  • Binary OrbitsNew
  • Black Hole
  • Blinking Dots
  • Blinking Squares
  • Blurred Rays
  • Chroma Blinds
  • Chroma CurrentNew
  • Chroma Waves
  • Cloud AtlasNew
  • Color Loops
  • Concentric TidesNew
  • Contour TideNew
  • Dappled LightNew
  • Dither Wave
  • Dot Shift
  • Eclipse
  • Fading StarsNew
  • Falling Rays
  • Flame Paths
  • Fog Sphere
  • Glass Flow
  • Glass Tiles
  • Glimmer WrapNew
  • Glitter Warp
  • Glowing Ridges
  • Glowing Wave
  • Glue Dots
  • Glyph EmberNew
  • Glyph OrbNew
  • Glyph SonarNew
  • Glyph TideNew
  • Gradient Bars
  • Grain Wave
  • Halftone Vortex
  • Halftone Wave
  • Hexagonal VaultNew
  • Horizon BloomNew
  • Interference RibbonsNew
  • Landscape
  • Light Droplets
  • Lightspeed
  • Liquid Bars
  • Liquid Lines
  • Long Exposure
  • Luminous FilamentsNew
  • Metallic Swirl
  • Minimal Ripple
  • Mosaic
  • Mosaic Waves
  • Neon Reveal
  • Neural Flash
  • Neural Float
  • Neural Tunnel
  • Nexus RaysNew
  • Perspective Grid
  • Photon KnotNew
  • Pixel Rain
  • Prismatic SlatsNew
  • Radial Liquid
  • Ravine
  • Retro Lines
  • Ring FieldNew
  • Rising Lines
  • Rising Particles
  • Rolling Blinds
  • Rotating Stars
  • Rubber Fluid
  • Satin RidgesNew
  • Shader Waves
  • Shadow Bars
  • Silk Waves
  • Simple Swirl
  • Specter Orb
  • Spectral Clouds
  • Spectral DrapeNew
  • Spiral FunnelNew
  • Square Matrix
  • Squares Terminal
  • Squircle Shift
  • Star Swipe
  • Swirl Blend
  • Synaptic Shift
  • Tech Wall
  • Terminal RainNew
  • Thinking Dots
  • Twilight Lines
  • Vortex
  • Voxel ArcNew
  • Warp Twister
  • Watercolor
  • Wireframe Ball
3D & Shaders49
  • Agentic Ball
  • AI Blob
  • Album RailNew
  • Bend Gallery
  • Chrome OrbitNew
  • Circle Stack
  • Concave CarouselNew
  • Constellation GalleryNew
  • Contact SheetNew
  • Depth Card
  • Depth Image
  • Depth RibbonNew
  • Device
  • Dolly Gallery
  • Elastic ReelNew
  • Elastic StickerNew
  • Ember RevealNew
  • Expanding GridNew
  • Frame Border
  • Glass Reveal
  • Globe
  • Gradient Blob
  • Helix GalleryNew
  • Infinite Gallery
  • Inverted Dome
  • Iris GalleryNew
  • Lenticular Carousel
  • Momentum RingNew
  • Page Flip
  • Parallax Carousel
  • Particle Image
  • Particle Morph
  • Passage GalleryNew
  • Pixel Reveal
  • Pixel Sculpt
  • Pixelate Hover
  • Pond ImageNew
  • Portal
  • Prism CarouselNew
  • Rotating Cards
  • Scroll BendNew
  • Scroll Portal
  • Shader Card
  • Shader Reveal
  • Spin ShutterNew
  • Star Burst
  • Tumble Carousel
  • Twisting Gallery
  • Warped Card
Cursor Effects21
  • Arc CursorNew
  • Ascii Cursor
  • Celebration CursorNew
  • Chroma HaloNew
  • Cursor Wave
  • Custom Cursor
  • Dither Cursor
  • Drafting CursorNew
  • Glass Cursor
  • Glyph StreamNew
  • Grid Rise
  • Gyroscope CursorNew
  • Liquid Ascii
  • Parallax Pills
  • Pigment TrailNew
  • Pixel Magnet
  • Ribbon TrailNew
  • Smooth Cursor
  • Snapshot TrailNew
  • Stardust CursorNew
  • User Cursor
UI & Cards28
  • Animated List
  • Card Spread
  • Center Flow
  • Chroma Card
  • Circle Gallery
  • Circles
  • Click Stack
  • Comparison Slider
  • Credit Card
  • Draggable Grid
  • Frame Scrub
  • Gradient Carousel
  • Hover Preview
  • Liquid Swap
  • Loupe ImageNew
  • Magic Transform
  • Modal Cards
  • Orbit ReelNew
  • Parallax Cards
  • Preloader
  • Reel Gallery
  • Scroll Mask
  • Scroll Stack
  • Simple Graph
  • Skewed Carousel
  • Tile Reveal
  • Tilted Tiles
  • Tumble WallNew
  1. Docs
  2. Components
  3. Text
  4. Text Cube

Animated components, blocks, and templates for React. Pay once, ship stunning pages forever.

pro@reactbits.dev

Site

HomeBuilder (Beta)PricingTestimonialsFAQsRoadmapChangelogFree Components

Docs

IntroductionInstallationMCP ServerComponentsBlocksTemplates

Resources

AboutUse casesComparisonsAlternativesFor AI agents

Legal & Account

LoginAffiliateLicensePrivacyContact

© 2026 pro.reactbits.dev. All rights reserved.

Text Cube

A 3D cube of text that follows the cursor

text-cube-tw

Customize

Color
Accent
Background
Font Weight
300
Font Size
18px
Cube Size
280px
Density
49
Perspective
700px
Shading
0.60
Depth Fade
0.30
Depth Tint
0.50
Glow
0.35
Rotation Speed
1.00
Auto Rotate X
0.30
Auto Rotate Y
0.30
Breathe
0.10
Follow Speed
0.08
Roll
0.35
Inertia
1.00s
Scramble
1.10s
Shuffle
0/s

Props

41
NameTypeDefaultDescription
wordstring"x"Text drawn at every point of the lattice.
fill"word" | "letters" | "random""word"How text covers the faces: the whole word at each point, its letters spelled across the faces, or random glyphs from the charset.
charsetstring"abcdefghijklmnopqrstuvwxyz0123456789"Glyphs used by the scramble, the shuffle and the random fill.
uprightbooleanfalseKeeps every glyph upright and facing you instead of printing it on its face.
cubeSizenumber280Edge length of the cube in pixels. It shrinks to fit small containers.
densitynumber49Glyphs per face, rounded up to a square grid.
fontSizenumber18Glyph size in pixels at the centre of the cube.
fontWeightnumber300Font weight from 100 to 900.
fontFamilystring"inherit"Font family. Inherit uses the font of the page.
colorstring"currentColor"Glyph colour. Defaults to the surrounding text colour.
accentColorstring"#B19EEF"Colour of scrambling glyphs and of the far faces.
backgroundColorstring"transparent"Fill behind the cube. On light fills or light pages the colours turn into deep ink tones.
shadingnumber0.6How much faces dim as they turn away from you.
depthFadenumber0.3Extra fade toward the back of the cube.
depthTintnumber0.5How far the back faces shift toward the accent colour.
glownumber0.35Soft bloom around bright glyphs. Dark backgrounds only.
perspectivenumber700Camera distance in pixels. Lower values look more dramatic.
rotationSpeednumber1Speed of the idle tumble.
autoRotateXnumber0.3Idle tumble around the horizontal axis.
autoRotateYnumber0.3Idle tumble around the vertical axis.
breathenumber0.1Size of the slow breathing pulse.
breatheSpeednumber2Speed of the breathing pulse.
followSpeednumber0.08How quickly the cube springs after the cursor. 0 keeps it in place.
rollnumber0.35How much the cube rolls as it travels.
offsetXnumber0Horizontal offset from the cursor in pixels.
offsetYnumber0Vertical offset from the cursor in pixels.
draggablebooleantrueDrag to spin the cube. A flick keeps it turning.
inertianumber1Seconds a flicked spin takes to slow down.
scrambleDurationnumber1.1Length of the click scramble in seconds. 0 turns it off.
shufflenumber0Glyphs per second that quietly change on their own.
opacitynumber1Overall opacity.
interactivebooleantrueFollow, drag and click. Off keeps the cube centred.
introbooleantrueTypes the cube in from the front when it appears.
pausedbooleanfalseStops the tumble, breathing and shuffle. Reduced-motion users get a still cube.
dprnumber2Maximum device pixel ratio for the canvas.
widthstring | number"100%"Width of the root.
heightstring | number"100%"Height of the root.
childrenReactNodeundefinedContent drawn above the cube.
classNamestringundefinedClasses for the root element.
styleCSSPropertiesundefinedInline styles for the root element.
ref{ scramble, spin }undefinedscramble() runs the scramble from code. spin(x?, y?) flicks the cube, in radians per second.
wordstring

Text drawn at every point of the lattice.

Default"x"
fill"word" | "letters" | "random"

How text covers the faces: the whole word at each point, its letters spelled across the faces, or random glyphs from the charset.

Default"word"
charsetstring

Glyphs used by the scramble, the shuffle and the random fill.

Default"abcdefghijklmnopqrstuvwxyz0123456789"
uprightboolean

Keeps every glyph upright and facing you instead of printing it on its face.

Defaultfalse
cubeSizenumber

Edge length of the cube in pixels. It shrinks to fit small containers.

Default280
densitynumber

Glyphs per face, rounded up to a square grid.

Default49
fontSizenumber

Glyph size in pixels at the centre of the cube.

Default18
fontWeightnumber

Font weight from 100 to 900.

Default300
fontFamilystring

Font family. Inherit uses the font of the page.

Default"inherit"
colorstring

Glyph colour. Defaults to the surrounding text colour.

Default"currentColor"
accentColorstring

Colour of scrambling glyphs and of the far faces.

Default"#B19EEF"
backgroundColorstring

Fill behind the cube. On light fills or light pages the colours turn into deep ink tones.

Default"transparent"
shadingnumber

How much faces dim as they turn away from you.

Default0.6
depthFadenumber

Extra fade toward the back of the cube.

Default0.3
depthTintnumber

How far the back faces shift toward the accent colour.

Default0.5
glownumber

Soft bloom around bright glyphs. Dark backgrounds only.

Default0.35
perspectivenumber

Camera distance in pixels. Lower values look more dramatic.

Default700
rotationSpeednumber

Speed of the idle tumble.

Default1
autoRotateXnumber

Idle tumble around the horizontal axis.

Default0.3
autoRotateYnumber

Idle tumble around the vertical axis.

Default0.3
breathenumber

Size of the slow breathing pulse.

Default0.1
breatheSpeednumber

Speed of the breathing pulse.

Default2
followSpeednumber

How quickly the cube springs after the cursor. 0 keeps it in place.

Default0.08
rollnumber

How much the cube rolls as it travels.

Default0.35
offsetXnumber

Horizontal offset from the cursor in pixels.

Default0
offsetYnumber

Vertical offset from the cursor in pixels.

Default0
draggableboolean

Drag to spin the cube. A flick keeps it turning.

Defaulttrue
inertianumber

Seconds a flicked spin takes to slow down.

Default1
scrambleDurationnumber

Length of the click scramble in seconds. 0 turns it off.

Default1.1
shufflenumber

Glyphs per second that quietly change on their own.

Default0
opacitynumber

Overall opacity.

Default1
interactiveboolean

Follow, drag and click. Off keeps the cube centred.

Defaulttrue
introboolean

Types the cube in from the front when it appears.

Defaulttrue
pausedboolean

Stops the tumble, breathing and shuffle. Reduced-motion users get a still cube.

Defaultfalse
dprnumber

Maximum device pixel ratio for the canvas.

Default2
widthstring | number

Width of the root.

Default"100%"
heightstring | number

Height of the root.

Default"100%"
childrenReactNode

Content drawn above the cube.

Defaultundefined
classNamestring

Classes for the root element.

Defaultundefined
styleCSSProperties

Inline styles for the root element.

Defaultundefined
ref{ scramble, spin }

scramble() runs the scramble from code. spin(x?, y?) flicks the cube, in radians per second.

Defaultundefined