Skip to content
Klarhimmel UI

Products, card over picture beside a list

Products, card over picture beside a list previewProducts, card over picture beside a list preview

Install

npx shadcn add @klarhimmel/products-card-overlap-list
DetailsAbout, usage, props and more

A large picture on the left with a card pinned over its lower left corner that holds a label, the heading and two actions, and on the right a lead line above a list of…

Import

Import

import Block from '@/components/klarhimmel/blocks/products-card-overlap-list';
Also called
  • products/card-overlap-list
About
A large picture on the left with a card pinned over its lower left corner that holds a label, the heading and two actions, and on the right a lead line above a list of items ruled apart by thin lines, each with an icon, a title and a…
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 picture should carry the heading and actions on a card laid over its corner, with a ruled list of reasons beside it. For plain rows with no picture use products-rows, and for equal picture cards use features-image-cards.

Writing for it

- Title 100 characters on the card, lead 240, two to six list rows with a name of 60 and a line of 160. - The card covers about a fifth of the picture's lower edge, so choose a picture whose subject sits high or right.

Watch out for

A long title makes the overlapping card tall and hides more of the picture. Keep the title to a short line and leave a secondary action empty if the card feels crowded.

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 ProductsCardOverlapList from '@/components/klarhimmel/blocks/products-card-overlap-list';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ProductsCardOverlapList props={{
          "eyebrow": "Section name",
          "title": "Say what this section offers",
          "primary": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          },
          "media": {
            "src": "/pictures/photo-bakery1.avif",
            "alt": "A bakery counter with loaves and pastries behind glass"
          },
          "description": "Say what the list beside the picture covers, in two short lines.",
          "items": [
            {
              "icon": "check",
              "name": "Name the first point",
              "description": "Say in one line what the visitor gets from this point."
            },
            {
              "icon": "layers",
              "name": "Name the second point",
              "description": "Say in one line what the visitor gets from this point."
            },
            {
              "icon": "shield",
              "name": "Name the third point",
              "description": "Say in one line what the visitor gets from this point."
            }
          ]
        }} />
      </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 this section offers'Text, up to 100 characters.
primaryLink{…}See the type.
secondaryLink{…}See the type.
mediaMedia{…}See the type.
descriptionstring'Say what the list beside the pictur…'Text, up to 240 characters.
items{ icon, name, description }[]3 itemsList of 2 to 6. Each item: 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.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.