Skip to content
VenusUI
Get started

Lamp Hero

A centered hero lit by a lamp, with a headline that rises out of a blur.

Preview

Installation

npx shadcn@latest add @venusui/hero-09

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/lamp.tsxfrom lamp
  • @/components/ui/blur-text.tsxfrom blur-text
  • @/components/hero-09.tsx

Also adds the shadcn button component if your project doesn't have it yet.

Usage

The code behind the preview above.

hero-09-demo.tsx

import { Hero09 } from "@/components/hero-09"

export default function Hero09Demo() {
  return <Hero09 />
}

API reference

No props. Edit the content directly in the file.

Requirements

  • shadcn button, VenusUI lamp and blur-text. The CLI installs them with their CSS. Works in Server Components.
  • It renders inside a .dark wrapper so it stays dark in both themes; this relies on shadcn’s class-based dark mode (the default).

Customization

  • Change the light with Lamp’s color.

Accessibility

  • One h1, real text. The light is decorative and the animations respect reduced motion.

Troubleshooting

Something looks different from the preview.
Blocks use your project’s theme and your own shadcn components, so they follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (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 found
Run npx shadcn@latest init in your project first.