Hero Section

Landing hero with a New pill badge, a headline revealed word by word with a spring blur-in, supporting copy that follows, primary and secondary CTAs, an install command chip with an animated copy button, an optional media slot that tilts up into place on view, and a CSS-gradient grid background with sweeping beams, centered or left aligned.

Preview

Hero Section preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/hero-section
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

headline
string | string[]

Revealed word by word with a blur-in.

—
description?
ReactNode
—
badge?
HeroBadge
—
primaryAction?
HeroAction
—
secondaryAction?
HeroAction
—
installCommand?
string

Shell command shown in a chip with a copy button.

—
media?
ReactNode

Screenshot, video or mock UI below the copy. Tilts in on view.

—
align?
"left" | "center"
center
background?
"grid" | "none"

CSS-only animated grid with sweeping beams, or nothing. Default "grid".

grid
headingAs?
ElementType

Heading element for the headline. Default "h1".

h1
className?
string
—
mediaClassName?
string
—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated