headline led
Baseline centred stack: badge, heading, paragraph and two actions in one column, with no media and nothing else above the fold.
shadcn add @hazine/hero-section
Depends on badge, button, @hazine/heading, lucide-react
Hero whose heading ends in a fixed-size slot that cycles through a list of audiences, with pause and step controls and an index of every audience below. Use it when one product serves several kinds of team.
How it differs. One slot in a start-aligned heading rotates through nouns under a pause and step control, and a hairline index of every noun below marks the one on show. Static full list under reduced motion.
pnpm dlx shadcn@latest add @hazine/hero-rotating-nounAdds 1 file, 1 shadcn primitive (button), 2 Hazine items (@hazine/heading, @hazine/use-controllable-state), and 1 package (lucide-react).
{
"registries": {
"@hazine": {
"url": "https://api.hazine.dev/r/{name}.json",
"headers": { "Authorization": "Bearer ${HAZINE_TOKEN}" }
}
}
}Set HAZINE_TOKEN in your environment. The token comes with a Pro licence.
The source of a Pro item is not published on this site. It installs into your codebase with the same command once your registry entry carries a Pro token.
pnpm dlx shadcn@latest add @hazine/hero-rotating-nounAdds 1 file, 1 shadcn primitive (button), 2 Hazine items (@hazine/heading, @hazine/use-controllable-state), and 1 package (lucide-react).
Also accepts every prop of Omit<React.ComponentProps<"section">, "title">.
| Key | Effect |
|---|---|
| Tab | Moves through pause, previous, next and the two action links. Rotation stops while keyboard focus is inside the section, and while the pointer is over the heading or its controls |
| Enter or Space on Pause | Stops the rotation until it is pressed again, and the button is renamed to resume |
| Enter or Space on Previous or Next | Shows the neighbouring word, wrapping at either end, and announces it with its position |
A section labelled by its heading. The rotating word is hidden from assistive tech, which reads the heading once with every noun in a visually hidden list. The pause control comes before the moving text, and manual steps are announced in a status region.
Filled chips are registry items the CLI adds for you. Outlined chips are npm packages.
None. The item is styled by the tokens your theme already has.
The same question answered with a different structure.
headline led
Baseline centred stack: badge, heading, paragraph and two actions in one column, with no media and nothing else above the fold.
shadcn add @hazine/hero-section
Depends on badge, button, @hazine/heading, lucide-react