Products, cover with link bar


Install
npx shadcn add @klarhimmel/products-cover-link-barDetailsAbout, usage, props and more
A full-bleed picture with a giant heading and a label at its foot, then a separate bar under it with a row of navigation links at the left and two actions at the right.
Import
Import
- products/cover-link-bar
- About
- A full-bleed picture with a giant heading and a label at its foot, then a separate bar under it with a row of navigation links at the left and two actions at the right. On a phone the actions wrap under the links.
- 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 page opens on a full-height picture with a giant heading, and the way on is a bar of navigation links and actions under it. When the actions sit on the picture use hero-cover; for a heading with no picture use hero-minimal.
Writing for it
- The title holds 80 characters; it is set very large, so use two to five words. - Two to eight links in the bar, each label 40 characters at most, and two actions. - The label above the heading holds 60 characters and is optional.
Watch out for
A dark overlay sits on the picture so the heading stays readable; a very dark photo needs no more. A long title shrinks in size on narrow containers but can still wrap onto four lines, so keep it short.
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 page offers' | Text, up to 80 characters. |
links | Link[] | 4 items | List of 2 to 8. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |