sigilUI

Hero Section

Full-width hero with badge, headline, description, CTA buttons, install command, and optional media.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { HeroSection } from "@sigil-ui/components";

Usage

<HeroSection
  badge={<Badge>New in v2</Badge>}
  title="Build faster with Sigil"
  description="A token-driven design system for React."
  actions={[
    { label: "Get started", href: "/docs" },
    { label: "GitHub", href: "https://github.com", variant: "secondary" },
  ]}
  installCommand="npx create-sigil-app"
/>

Left-aligned with media

<HeroSection
  title="Ship with confidence"
  description="Every component reads from your tokens."
  align="left"
  media={<img src="/hero.png" alt="Hero" />}
/>

Props

PropTypeDefaultDescription
badgeReactNode—Element rendered above the title
titleReactNoderequiredMain headline
descriptionReactNode—Supporting text below the headline
actionsHeroAction[]—CTA buttons ({ label, href?, onClick?, variant? })
installCommandstring—Terminal command shown in a code block
mediaReactNode—Image, video, or component below the actions
align"left" | "center""center"Layout alignment
classNamestring—Additional CSS classes

Plus all standard <section> HTML attributes.