labsUI
Accent color

Hero

Server-safe opening section: title, text, actions and media, side by side or centered. Follows the width of its container, labels itself with its title and adds no entrance motion, so the headline paints at once.

npx @kznlabs/labsui add hero

acme.gg

Every clip your server remembers

Record, trim and share highlights without leaving the match. Your community keeps the moments, you keep the files.

<Hero>

Opening section of a page: title, text, actions and media.

  • title required
    ReactNode
    The headline.
  • actions
    ReactNode
    Links or buttons under the text, e.g. anchors styled with buttonVariants().
  • alignDefault "start"
    "start" | "center"
    Text alignment. center always keeps media below the text.
  • asDefault "h1"
    "h1" | "h2"
    Heading level of the title. Keep one h1 per page.
  • description
    ReactNode
    Supporting text under the title.
  • eyebrow
    ReactNode
    Short line above the title, e.g. a Badge.
  • media
    ReactNode
    Image, video or a live composition. Beside the text when wide, below it otherwise.
PropTypeDefault
title required
The headline.
ReactNode—
actions
Links or buttons under the text, e.g. anchors styled with buttonVariants().
ReactNode—
align
Text alignment. center always keeps media below the text.
"start" | "center""start"
as
Heading level of the title. Keep one h1 per page.
"h1" | "h2""h1"
description
Supporting text under the title.
ReactNode—
eyebrow
Short line above the title, e.g. a Badge.
ReactNode—
media
Image, video or a live composition. Beside the text when wide, below it otherwise.
ReactNode—

required

Also accepts every <section> prop.

Every component also takes className.