{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lamp",
  "title": "Lamp",
  "author": "VenusUI",
  "description": "A glowing bar casting a cone of light that opens over the content below.",
  "files": [
    {
      "path": "registry/default/ui/lamp.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface LampProps extends React.ComponentProps<\"div\"> {\n  /** Color of the light. Any CSS color. */\n  color?: string\n}\n\n/**\n * A lamp at the top of a section: a glowing bar casting a cone of light that\n * opens outward, lighting the content below. Put your heading in `children`.\n * Looks best on a dark background. The light opens once on load and is\n * already open with reduced motion.\n */\nfunction Lamp({ color = \"oklch(0.78 0.14 220)\", className, style, children, ...props }: LampProps) {\n  return (\n    <div\n      data-slot=\"lamp\"\n      className={cn(\"relative isolate flex flex-col items-center overflow-hidden\", className)}\n      style={{ \"--lamp-color\": color, ...style } as React.CSSProperties}\n      {...props}\n    >\n      <div\n        aria-hidden=\"true\"\n        className=\"pointer-events-none absolute inset-x-0 top-0 -z-10 h-[26rem] origin-top animate-lamp-open motion-reduce:animate-none\"\n      >\n        {/* The cone: narrow at the bar, widening and fading as it falls. A blurred copy softens its edges. */}\n        <div className=\"absolute top-0 left-1/2 h-72 w-[min(46rem,100%)] -translate-x-1/2 opacity-30 blur-xl\">\n          <div className=\"size-full bg-[linear-gradient(to_bottom,var(--lamp-color),transparent_85%)] [clip-path:polygon(24%_0,76%_0,100%_100%,0_100%)]\" />\n        </div>\n        <div className=\"absolute top-0 left-1/2 h-72 w-[min(46rem,100%)] -translate-x-1/2 bg-[linear-gradient(to_bottom,var(--lamp-color),transparent_70%)] opacity-25 [clip-path:polygon(24%_0,76%_0,100%_100%,0_100%)]\" />\n        <div className=\"absolute top-0 left-1/2 h-40 w-[min(36rem,80vw)] -translate-x-1/2 -translate-y-1/2 rounded-full bg-(--lamp-color) opacity-40 blur-3xl\" />\n        <div className=\"absolute top-0 left-1/2 h-0.5 w-[min(24rem,60vw)] -translate-x-1/2 bg-(--lamp-color) shadow-[0_0_24px_4px_var(--lamp-color)]\" />\n      </div>\n      {children}\n    </div>\n  )\n}\n\nexport { Lamp, type LampProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-lamp-open": "lamp-open 1.4s cubic-bezier(0.22, 1, 0.36, 1) both"
    }
  },
  "css": {
    "@keyframes lamp-open": {
      "from": {
        "opacity": "0.4",
        "transform": "scaleX(0.45)"
      },
      "to": {
        "opacity": "1",
        "transform": "scaleX(1)"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "effects",
    "backgrounds",
    "animations"
  ],
  "type": "registry:ui"
}