Patterns · Marketing
Hero
Since v3.1.0
The page hero: ambient backdrop, eyebrow, display headline (the page's one h1), lead, actions and a visual. Server component.
import { Hero } from '@nexub/marketing';Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| titlerequired | React.ReactNode | — | The headline, rendered as the h1. |
| eyebrow | React.ReactNode | — | A string becomes a gradient EyebrowChip. |
| description | React.ReactNode | — | The lead paragraph. |
| actions | React.ReactNode | — | One Button variant="hero" and one outlined button, usually. |
| visual | React.ReactNode | — | Product shot or illustration. Beside the text on wide screens with align="start". |
| align | 'center' | 'start' | 'center' | Text alignment and layout. |
| division | 'os' | 'commerce' | 'fintech' | 'intelligence' | 'autonomous' | — | Sets data-division on the section: a string eyebrow takes the division colour. Load @nexub/themes/divisions. |
On iOS & Android
Web only
Hero has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.