Products, picker


Install
npx shadcn add @klarhimmel/products-pickerDetailsAbout, usage, props and more
A large picture with a label, big heading, lead and two actions on the left, beside a narrow list of item cards on the right, each with a name, an optional label, one…
Import
Import
- products/picker
- About
- A large picture with a label, big heading, lead and two actions on the left, beside a narrow list of item cards on the right, each with a name, an optional label, one line and a price.
- 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 large picture and pitch should sit beside a short menu of choices such as plans, editions or models, each card a link to its own page. For a plain pitch with no list pick hero-split; for stacked rows pick products-rows.
Writing for it
- Title up to 100 characters, lead up to 240, list title up to 80. - Two to six cards: name up to 40, label up to 24, line up to 120, price up to 16, period up to 30. - Every card needs a link target.
Watch out for
The first card always looks chosen, so put the item you want to lead with first. The cards go to other places and do not change the picture, so do not promise a preview.
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 visitor can pick here' | Text, up to 100 characters. |
description | string | 'Say in one or two sentences what th…' | Text, up to 240 characters. |
media | Media | {…} | See the type. |
primary | Link | {…} | Optional; empty is not rendered. |
secondary | Link | {…} | Optional; empty is not rendered. |
listTitle | string | 'Name the list of items' | Text, up to 80 characters. |
items | { name, badge, description, price, period, href }[] | 3 items | List of 2 to 6. Each item: name, badge, description, price, period, href. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |