Features, bento pictures


Install
npx shadcn add https://ui.klarhimmel.com/r/features-bento-pictures.jsonDetailsAbout, usage, props and more
A heading with a lead and two actions beside it, then a bento of picture cards: a large card beside a medium card and a solid number tile, and a small card beside a…
Import
Import
- features/bento-pictures
- About
- A heading with a lead and two actions beside it, then a bento of picture cards: a large card beside a medium card and a solid number tile, and a small card beside a wide card with its picture at the side.
- Category
- What it does, as a grid, a list, tabs or alternating rows. New project? Set it up once: /get-started/installation.
Notes
When to use it
A heading with a lead and two actions, then a bento of picture cards, a solid number tile and a wide card with its picture at the side. Use features-bento-cards when some cards should be icon only.
Writing for it
- Treat the large card as the lead item. It is as tall as the two cards beside it, so give it the most important story. - The solid tile holds one number, so choose a figure that stands without a chart and label what it measures. - The wide card puts its picture beside its text on a wide screen and above it on a phone.
Watch out for
Five cards in fixed places mean the grid has no spare slot. Replacing a picture with a different crop changes how tall the large card looks, so recheck the grid after swapping photos.
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 group' | Text, up to 30 characters. |
title | string | 'Say what this group of items is abo…' | Text, up to 80 characters. |
description | string | 'Say in one or two sentences what th…' | Text, up to 200 characters. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | Optional; empty is not rendered. |
feature | { badge, title, description, media } | {…} | Fields: badge, title, description, media. |
card | { title, description, media } | {…} | Fields: title, description, media. |
stat | { value, label } | {…} | Fields: value, label. |
small | { title, description, media } | {…} | Fields: title, description, media. |
wide | { tag, title, description, media, link } | {…} | Fields: tag, title, description, media, link (optional). |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |