Skip to content
VenusUI
Get started

Centered Hero

A centered hero with an announcement link, two calls to action and a product window placeholder.

Preview

Installation

npx shadcn@latest add @venusui/hero-01

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/shimmer-button.tsxfrom shimmer-button
  • @/components/hero-01.tsx

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

Usage

The code behind the preview above.

hero-01-demo.tsx

import { Hero01 } from "@/components/hero-01"

export default function Hero01Demo() {
  return <Hero01 />
}

API reference

No props. The text, links and layout are in the file. It's your code, so edit it directly.

Requirements

  • shadcn button and VenusUI shimmer-button. The CLI installs both.
  • React 19 and Tailwind CSS v4, with a cn helper at @/lib/utils.

Customization

  • Replace the headline, paragraph and button labels, and point the announcement link (href="#") at your changelog.
  • Swap the product window placeholder (marked with a comment) for an <img>, next/image or a video.
  • Use Button for both actions if you don’t want the shimmer effect.

Accessibility

  • Uses one h1. Keep it the only h1 on the page.
  • The product window placeholder is aria-hidden. Give a real screenshot meaningful alt text.
  • The shimmer effect stops when the user prefers reduced motion.

Troubleshooting

The outline button looks different from the preview.
The block uses your project’s own shadcn button, so it follows your style and theme. Previews on this site use the Nova style.
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.