Products, feature stack


Install
npx shadcn add @klarhimmel/products-feature-stackDetailsAbout, usage, props and more
A heading above one large product card (picture, badge, name, line, price and two actions) beside a column of two to four small cards, each a square picture with a…
Import
Import
- products/feature-stack
- About
- A heading above one large product card (picture, badge, name, line, price and two actions) beside a column of two to four small cards, each a square picture with a name, a line and a price. On a phone the large card sits above the column.
- 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 to put one product first and its smaller siblings beside it, each with a price. For a lead picture with captions only and no prices use gallery-featured; for equal product cards use features-image-cards.
Writing for it
- The title holds 120 characters, the lead 240 and the badge 24. The large card takes a name of 80, a line of 200, a price of 16 and one or two actions. - The column holds two to four small cards, each a name of 60, a line of 100 and a price of 16 with an optional period of 30.
Watch out for
The large card is the loudest part, so give it the product you most want chosen. A price is a short figure; put the billing words in the period so the figure never wraps. Four small cards make the column taller than the large card on a wide screen.
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 the range offers' | Text, up to 120 characters. |
description | string | 'Say in one line what the visitor ca…' | Text, up to 240 characters. |
main | { media, badge, name, description, price, period, primary, secondary } | {…} | Fields: media, badge, name, description, price, period, primary, secondary (optional). |
items | { media, name, description, price, period }[] | 3 items | List of 2 to 4. Each item: media, name, description, price, period. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |