Ecommerce hero
A seasonal statement over an inverted field, with the category rail directly beneath.
Live preview
Source
This exact file renders the preview above.
components/blocks/headers/ecommerce.tsx
components/ui/badge.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
Storefront visitors mostly arrive knowing roughly what they want, so the fastest thing a hero can do is get out of the way. The rail matters more than the statement.
- Keep the statement to one line at desktop; it competes with the products otherwise.
- The rail scrolls horizontally rather than wrapping, so the hero height stays predictable.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Inverted statement panel
- Category pill rail
- Dual action
Accessibility
- Rail landmark
- The category rail is a labelled `<nav>` separate from the site navigation.
- Inverted contrast
- Foreground on the inverted panel comes from the ink-inverse token.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All navigationEcommerce starter
A storefront with ten product routes, five category routes, a working cart with quantity controls and the multi-step checkout from the form catalogue.
advancedFeatured4 variantsEcommerce navbar
Announcement bar, category rail, search, account and a bag whose count is in the accessible name.
intermediate4 variantsProduct grid
A storefront grid with reserved image areas, price comparison and stock state.
starterFeatured3 variants