All components

XEHkit / Hero

Full-height hero with display headline, pill CTAs, and a visual slot.

Sourcedescription.md

Small tools, shipped in the open.

XEHkit is the kit behind every site we publish. Copy a component, drop it in, keep building.

xehhq / xehkit

v0.4.2

Tagged, pushed, and copied straight into your project.

7
components
1
license
0
dependencies

Live preview. Server component, no client JavaScript.

Hero

Full-height marketing hero with a display headline, a supporting line, pill calls to action, and a visual slot on the right. Structure and scale follow the modern fintech hero pattern: one wide display line, then a split row with copy on the left and the product visual on the right. The component ships with an original atmospheric gradient; pass background to supply your own artwork layer.

Props

Prop Type Default Notes
headline string required Display headline, clamped from 2.75rem to 5.25rem.
subheadline string unset Supporting line, capped at 20rem wide.
primaryCta HeroCta unset Filled pill. Hidden when omitted.
secondaryCta HeroCta unset Outlined pill next to the primary.
visual ReactNode unset Right-hand slot for a mock, illustration, or figure.
background ReactNode unset Absolute artwork layer behind everything.
tone "dark" | "light" "dark" Light text on dark artwork, or dark text on the page background.

Usage

import { Hero } from "@xeh/xehkit/components/hero/Hero";
import "@xeh/xehkit/xehkit.css";

<Hero
  headline="Small tools, shipped in the open."
  subheadline="XEHkit is the kit behind every site we publish. Copy a component, drop it in, and keep building."
  primaryCta={{ label: "Get the kit", href: "/xehkit" }}
  secondaryCta={{ label: "Read the source", href: "https://gitlab.com/xehhq/XEHkit" }}
  visual={<ReleaseCard />}
/>

Notes

  • Server component. No client JavaScript.
  • The default gradient is original artwork, not any brand's background.
  • With tone="light" the hero uses the page background and ink text, which suits light marketing pages.
  • The visual slot is hidden below the fold on small screens, where the copy stacks above it.