Products, card over picture beside a list


Install
npx shadcn add @klarhimmel/products-card-overlap-listDetailsAbout, 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
- 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.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Section name' | Text, up to 60 characters. |
title | string | 'Say what this section offers' | Text, up to 100 characters. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | See the type. |
media | Media | {…} | See the type. |
description | string | 'Say what the list beside the pictur…' | Text, up to 240 characters. |
items | { icon, name, description }[] | 3 items | List 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. |