Products, grid with picture foot


Install
npx shadcn add @klarhimmel/products-grid-picture-footDetailsAbout, usage, props and more
A heading with a lead on the left and two actions on the right, a row of icon cards each with a title, a line and a small link, and one wide captioned picture under the…
Import
Import
- products/grid-picture-foot
- About
- A heading with a lead on the left and two actions on the right, a row of icon cards each with a title, a line and a small link, and one wide captioned picture under the cards. On a phone everything stacks.
- 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 a products or services section needs a header with its actions at the right, a short row of icon cards that each link on, and one wide captioned picture closing the section. When the picture belongs above the grid and there are no header actions use features-grid; for one product with its price use products-featured-split.
Writing for it
- The title holds 120 characters, the lead 240 and each card title 60 with a line of 200. One to six cards; three fill the row. - Every card has an icon from the list and a small link label of 40 characters; empty the label and the link is dropped. - The caption holds 160 characters and says what the wide picture shows.
Watch out for
The picture is cropped to a wide strip, so choose one whose subject sits in the middle band. Keep card lines to the same length or the row looks ragged. Do not put a long heading beside the actions, or the actions drop below it.
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 | 'Name the section' | Text, up to 60 characters. |
title | string | 'Say what the visitor can choose from' | Text, up to 120 characters. |
description | string | 'Say in one or two sentences what th…' | Text, up to 240 characters. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | See the type. |
items | { icon, title, description, link }[] | 3 items | List of 1 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'), title, description, link. |
media | Media | {…} | See the type. |
caption | string | 'Say what the wide picture shows.' | Text, up to 160 characters. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |