Skip to content
Klarhimmel UI

Features, bento pictures

Features, bento pictures previewFeatures, bento pictures preview

Install

npx shadcn add https://ui.klarhimmel.com/r/features-bento-pictures.json
DetailsAbout, 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

import Block from '@/components/klarhimmel/blocks/features-bento-pictures';
Also called
  • 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.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import FeaturesBentoPictures, { spec } from '@/components/klarhimmel/blocks/features-bento-pictures';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FeaturesBentoPictures props={spec.defaults} />
      </BlockSurface>
    </Theme>
  );
}

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.

PropTypeDefaultDescription
eyebrowstring'Name the group'Text, up to 30 characters.
titlestring'Say what this group of items is abo…'Text, up to 80 characters.
descriptionstring'Say in one or two sentences what th…'Text, up to 200 characters.
primaryLink{…}See the type.
secondaryLink{…}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.