Loading preview
Cards arranged in a ring that turns in 3D, with buttons, arrow keys and announcements.
Text extruded into 3D with stacked shadows that tilts on hover.
npx shadcn@latest add @venusui/text-3dRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/text-3d.tsxThe code behind the preview above.
text-3d-demo.tsx
import { Text3d } from "@/components/ui/text-3d"
export default function Text3dDemo() {
return <Text3d text="DEPTH" className="text-7xl" />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | The text. Required. |
| as | "h1" | "h2" | "h3" | "p" | "span" | "h2" | Element to render. |
| depth | number | 8 | Extrusion depth in layers (about one pixel each). |
| tilt | boolean | true | Tilt toward the viewer on hover. |
| className | string | — | Classes, e.g. a font size and color. |
Only the props above.
color-mix() support (all current browsers). Works in Server Components.depth, or use a lighter background.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Cards arranged in a ring that turns in 3D, with buttons, arrow keys and announcements.
A CSS-only cube with six content faces that tumbles slowly and pauses on hover.
A tilted wall of vertically scrolling columns, for screenshots and showcases.