Skip to content

Design platform stats

Stat tile bento grid with a tall photo.

Usage

Usage
import { BentoGrid04 } from '@/components/blocks/bento-grid-04'


<BentoGrid04 />


// Change the copy and numbers with props. The photo and icons live in bento-grid-04.tsx.
<BentoGrid04
  title="Built for product teams"
  speed={{ value: 99, suffix: '%', caption: 'of edits sync in under 100ms' }}
  history={{ linkHref: '/docs/version-history' }}
  handoff={{ value: 42, caption: 'fewer review rounds per release' }}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/bento-grid-04

Source

Props

Design platform stats props
PropTypeDefaultDescription
titleReactNode= 'Designed for teams that ship'Section heading.
descriptionstring= 'From the first sketch to the final handoff…'Muted paragraph under the heading.
communityPartial<{ value: number; decimals?: number; prefix?: string; suffix?: string; title: string; description: string }>= { value: 2.4, decimals: 1, suffix: 'M+', … }Stat, heading and text at the bottom of the tall photo tile.
speedPartial<{ value: number; decimals?: number; prefix?: string; suffix?: string; caption: string }>= { value: 98, suffix: '%', … }Big number and caption on the blue gradient tile.
historyPartial<{ value: number; decimals?: number; prefix?: string; suffix?: string; label: string; title: string; description: string; linkLabel: string; linkHref: string }>= { value: 1.2, decimals: 1, suffix: 'B', … }Inset stat, heading, text and link on the wide white tile.
workflow{ title?: string; description?: string; items?: [{ title: string; description: string }, { title: string; description: string }] }= { title: 'Design and build in one place', … }Heading, text and the two icon items on the glow tile.
handoffPartial<{ value: number; decimals?: number; prefix?: string; suffix?: string; caption: string }>= { value: 38, suffix: '%', … }Big number and caption on the pale sky tile.
classNamestring= —Extra classes for the outer section.
styleCSSProperties= —Inline styles, handy for overriding the --bg4-* theme variables.