Crystal
A faceted glass crystal with real refraction (physical transmission) and a glowing inner core, tinted with --primary. Self-contained and theme-aware.
A faceted glass crystal with real refraction (physical transmission) and a glowing inner core, tinted with --primary. Self-contained and theme-aware.
Customize
Speed1
Roughness0.05
IOR1.7
Props
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Rotation speed multiplier. |
roughness | number | 0.05 | Glass surface roughness (0 = mirror-clear). |
ior | number | 1.7 | Index of refraction (how much light bends). |
className | string | — | Classes for the wrapper element (set its height here). |
theme | "auto" | "light" | "dark" | "auto" | Color source. auto reads the live shadcn theme. |
speednumberRotation speed multiplier.
Default
1roughnessnumberGlass surface roughness (0 = mirror-clear).
Default
0.05iornumberIndex of refraction (how much light bends).
Default
1.7classNamestringClasses for the wrapper element (set its height here).
Default
—theme"auto" | "light" | "dark"Color source. auto reads the live shadcn theme.
Default
"auto"