{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text-3d",
  "title": "3D Text",
  "author": "VenusUI",
  "description": "Text extruded into 3D with stacked shadows that tilts on hover.",
  "files": [
    {
      "path": "registry/default/ui/text-3d.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface Text3dProps {\n  text: string\n  /** Element to render. */\n  as?: \"h1\" | \"h2\" | \"h3\" | \"p\" | \"span\"\n  /** Extrusion depth in layers (each about one pixel). */\n  depth?: number\n  /** Tilt toward the viewer on hover. */\n  tilt?: boolean\n  className?: string\n}\n\n/**\n * Text extruded into 3D with stacked shadows, tilting slightly on hover.\n * Pure CSS: the text stays real, selectable text. Uses the current text color\n * for the face and darker mixes for the sides. No tilt with reduced motion.\n */\nfunction Text3d({ text, as: Tag = \"h2\", depth = 8, tilt = true, className }: Text3dProps) {\n  const shadow = Array.from(\n    { length: depth },\n    (_, i) => `${i + 1}px ${i + 1}px 0 color-mix(in oklch, currentColor ${Math.max(18, 45 - i * 3)}%, var(--background))`\n  ).join(\", \")\n\n  return (\n    <Tag\n      data-slot=\"text-3d\"\n      className={cn(\n        \"inline-block font-semibold tracking-tight [transform:perspective(800px)] transition-transform duration-500 ease-out motion-reduce:transition-none\",\n        tilt && \"hover:[transform:perspective(800px)_rotateX(14deg)_rotateY(-14deg)] motion-reduce:hover:[transform:none]\",\n        className\n      )}\n      style={{ textShadow: shadow }}\n    >\n      {text}\n    </Tag>\n  )\n}\n\nexport { Text3d, type Text3dProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "3d",
    "text"
  ],
  "type": "registry:ui"
}