Skip to content
Klarhimmel UI

Products, tile mosaic

Products, tile mosaic previewProducts, tile mosaic preview

Install

npx shadcn add @klarhimmel/products-tile-mosaic
DetailsAbout, usage, props and more

A twelve-column mosaic of tiles in rounded cards where the heading, lead and two actions are the biggest tile.

Import

Import

import Block from '@/components/klarhimmel/blocks/products-tile-mosaic';
Also called
  • products/tile-mosaic
About
A twelve-column mosaic of tiles in rounded cards where the heading, lead and two actions are the biggest tile.
Category
Things for sale as cards, rows or one featured item, each with a name, a price and its own action. New project? Set it up once: /get-started/installation.

Notes

When to use it

Pick it when one product page needs a single dense mosaic: the pitch as the biggest tile, with a product tile, an accent tile, a figure, an icon note and two pictures around it. For a plain set of feature cards choose features-bento-cards; for a picture-led set choose gallery-mosaic.

Writing for it

- Title up to 120 characters, lead up to 240, two actions up to 40 each. - Product tile name up to 60, line up to 120; accent tile line up to 160 with up to three points. - Figure value up to 12 characters, label up to 80; note label up to 24, text up to 80.

Watch out for

The tiles are fixed in kind and order, so you cannot add a second product tile; if you need more items use a card block instead. Empty a price or a badge to drop it, keep the figure short enough to stay on one line, and pick icons that say what the note means.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import ProductsTileMosaic, { spec } from '@/components/klarhimmel/blocks/products-tile-mosaic';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ProductsTileMosaic props={spec.defaults} />
      </BlockSurface>
    </Theme>
  );
}

Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

PropTypeDefaultDescription
eyebrowstring'Section name'Text, up to 60 characters.
titlestring'Say what the visitor can choose from'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what th…'Text, up to 240 characters.
primaryLink{…}See the type.
secondaryLink{…}Optional; empty is not rendered.
picture{ media, caption }{…}Fields: media, caption.
product{ badge, name, description, price, period }{…}Fields: badge, name, description, price, period.
featured{ icon, name, description, points, price, period }{…}Fields: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), name, description, points, price, period.
figure{ value, label }{…}Fields: value, label.
note{ icon, label, text }{…}Fields: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), label, text.
wide{ media }{…}Fields: media.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.