A cut gem with a flat table, angled crown facets and a pointed pavilion. The faces are see-through, so far facets show through near ones, and a few flash as it turns.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 200 | Girdle diameter in px. |
| sides | number | 8 | Number of sides, 6 to 12. |
| hue | number | 265 | Base hue in degrees (0 red, 200 blue, 280 violet). |
| seconds | number | 12 | Seconds per turn. |
| className | string | Extra classes added to the outer element. |