Loading preview
Background Beams
BackgroundsCurved lines across a section with light traveling along them.
A glowing bar casting a cone of light that opens over the content below.
npx shadcn@latest add @venusui/lampRun 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/lamp.tsxThe code behind the preview above.
lamp-demo.tsx
import { Lamp } from "@/components/ui/lamp"
export default function LampDemo() {
return (
<div className="dark w-full overflow-hidden rounded-xl border bg-background text-foreground">
<Lamp className="px-6 pt-36 pb-16 text-center">
<h2 className="text-3xl font-semibold tracking-tight sm:text-4xl">Built in the spotlight</h2>
<p className="mt-3 text-sm text-muted-foreground">A lamp lights whatever you put under it.</p>
</Lamp>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "oklch(0.78 0.14 220)" | Color of the light. Any CSS color. |
| children | ReactNode | — | Content lit by the lamp, usually a heading. Leave top padding (about pt-40) so it sits under the light. |
All <div> props, including className.
lamp-open keyframes and --animate-lamp-open. Works in Server Components.color.aria-hidden).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.Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.
Streaks of light falling diagonally across a card or section.