3D Cube

PRO

Preview live, install via shadcn or copy the source.

Installation

Install via shadcn

This will install the component and its dependencies automatically.

PRO COMPONENT

Unlock with PRO

This component is exclusive to reframe/ui PRO.
Get instant access to all premium components and templates.

Usage

3d-cube-usage.tsxTSX

Props

NameTypeDefaultRequiredDescription
textures[string, string, string, string, string, string]YesSix image URLs, one per cube face.
classNamestringNoContainer className.
sizenumberNoCube edge length.
spinSpeednumberNoBase spin speed in radians/sec.
scrollRotationsnumberNoNumber of full rotations across the scroll range.
mouseIntensitynumberNoMax mouse tilt in radians (e.g., 0.3 ≈ 17°).
© reframe/ui 2026Built by @thommysart
More in 3D & Shaders