Lamp Effect

Motion

A React lamp effect for dark hero panels: a thin bright line at the top switches on and widens, casting a soft cone of light on the headline beneath it.

src/registry/premium/lamp-effect.tsx/r/lamp-effect.json

Installation#

bash
npx shadcn@latest add @minidev/lamp-effect

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/lamp-effect.json

Usage#

tsx
import { LampEffect } from "@/components/ui/lamp-effect"

export function Example() {
  return <LampEffect />
}

API reference#

LampEffect props
PropTypeDefault
widthnumber440
colorstring"var(--accent)"
glownumber1
darkbooleantrue
classNamestring-
childrenReact.ReactNode-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components