Products, tiles with links


Install
npx shadcn add @klarhimmel/products-tile-linksDetailsAbout, usage, props and more
A tall picture tile on the left beside two tiles stacked on the right: a heading tile (label, heading, line) and a tile with a list of navigation links, two actions and…
Import
Import
- products/tile-links
- About
- A tall picture tile on the left beside two tiles stacked on the right: a heading tile (label, heading, line) and a tile with a list of navigation links, two actions and a small link. On a phone the three tiles stack.
- 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 section is a tile composition: a tall picture at the left and, stacked at the right, a heading tile and a tile of site navigation links with two actions. For plain cards in a grid use features-image-cards; for a picture beside one product's details use products-featured-split.
Writing for it
- The title holds 120 characters, the line under it 200. Keep both short, the tile is narrow. - Two to eight links, each label up to 40 characters, one per row with a hairline between. - Two actions and one small link with an arrow; empty a label to drop it.
Watch out for
The picture tile stretches to the height of the two tiles, so a portrait photo works best. On a phone the tiles stack in picture, heading, links order. More than six links makes the right column taller than the picture needs.
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 |
|---|---|---|---|
media | Media | {…} | See the type. |
eyebrow | string | 'Name the section' | Text, up to 60 characters. |
title | string | 'Say what the visitor finds here' | Text, up to 120 characters. |
description | string | 'Say in one line where the links bel…' | Text, up to 200 characters. |
links | Link[] | 4 items | List of 2 to 8. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | See the type. |
textLink | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |