Hero spotlight
BlockA dark hero lit by a spotlight beam that opens as it scrolls into view.
- Heroes
- 1 components
- 1 file
Loading the example…
pnpm dlx @dowel-ui/cli add hero-spotlightimport { HeroSpotlightBlock } from "@/components/blocks/hero-spotlight"; export default function Page() { return <HeroSpotlightBlock />;}<HeroSpotlightBlock>
| Prop | Type | Default |
|---|---|---|
description | string | "Beautifully animated, accessible components built with React and Tailwind CSS. Open source and ready for production." |
headingLevelThe headline's level, so the block fits any page outline. | 1 | 2 | 3 | 4 | 5 | 6 | 2 |
primaryActionThe main call to action. | HeroSpotlightAction | null | { label: "Get started", href: "#" } |
secondaryActionThe quieter call to action. | HeroSpotlightAction | null | { label: "Documentation", href: "#" } |
titleThe headline. | string | "Build stunning interfaces" |
Plus every attribute of <section> except title.
One section landmark named by its headline, whose level is a prop. It is dark in every theme through the theme's own dark tokens, so contrast holds. The beam and dust are aria-hidden decoration; the dust twinkles three times and rests rather than looping forever. The entrance plays once, on first scroll into view, and settles instantly under reduced motion.