suiss/ui · Block
Hero Tiles
A pair of promotional hero tiles, each with a title, tagline, two actions, and a product image.
Hero Tiles is an open-source block from suiss/ui for React. The @esuiss/ui CLI copies its source into your project, so you own the code.
Two promotional tiles, each with a title, tagline, Learn more and Buy buttons and a product image, one of them rendered in the dark palette. The tiles stack on mobile and sit side by side on desktop. It is a static server component for promoting two products or offers on a home page.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
-
Add the
cnhelper. -
Add the pieces it builds on: Button.
-
Copy the source into
components/blocks/hero-tiles.tsx:
- Update the import paths to match your project.
Usage
Edit the tiles array; each tile has a title, text, image, alt text and a dark flag. Dark tiles prefix their title with suiss, so remove that span if it doesn't fit your brand. Connect the buttons to your product pages.
Notes
Images are Unsplash placeholders.