Patterns
Hero
Page-level section header with eyebrow, title, lead text, and an action slot
import { Hero } from '@amezquita/design-system/components/patterns/Hero'Live render
Design system
Start from base
A brand-neutral theme every project starts from.
Props
| Prop | Type | Description |
|---|---|---|
eyebrow? | string | |
title | string | |
titleAs? | 'h1' | 'h2' | |
lead? | string | |
actions? | React.ReactNode | |
align? | 'left' | 'centered' |
Tokens
| Token | Type | Value |
|---|---|---|
--hero-eyebrow-size | dimension | 14px |
--hero-eyebrow-spacing | dimension | 0.01em |
--hero-eyebrow-weight | fontWeight | 600 |
--hero-lead-max-width | dimension | 60ch |
--hero-lead-size | dimension | 20px |
--hero-max-width | dimension | 800px |
--hero-padding-y | dimension | 96px |
--hero-title-weight | fontWeight | 800 |
Usage example
<Hero {...args} />Accessibility
<section>wrapper — apply a meaningfularia-labelat the page level when neededtitleAscontrols heading level; always set it correctly for document outline- Actions slot: interactive elements inside must carry their own accessible labels