Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/values-with-team-photo.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about2.tsx instead.
Usage
The file also exports about2Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { About2, about2Demo } from "@/components/blocks/about/about2"; export default function Page() { return <About2 {...about2Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | none | Section heading. |
| description | string | undefined | Section intro text. |
| photo | { src: string; alt: string } | undefined | Photo above the values grid; renders a placeholder when omitted. |
| values | ValueItem[] | none | Value cards, each with an icon, title, and description. |
| className | string | none | Extra classes for the outer section element. |
Types
type ValueItem = { icon: LucideIcon; title: string; description: string; };
Behavior notes
- The photo slot always renders at a fixed 21:9 aspect ratio; without a photo prop it shows a neutral gradient placeholder instead of collapsing, so the layout never jumps once a real photo is added.
- icon is a LucideIcon component reference (e.g. ShieldCheck imported from lucide-react), not a string name or a rendered element; the component does const Icon = value.icon internally, so callers pass the icon component itself.
- values renders in a fixed 3-column grid on small screens and up; it does not reflow for counts other than 3.
More About Blocks
View all →Team & Mission
Two-column about section with mission statement, company stats, and team member grid.
Timeline & Milestones
Company stats on the left and a vertical timeline of milestones on the right.
Founder Quote & Team
Founder blockquote with avatar, followed by a horizontal team member row.
Image & Text Split
Tall image on the left, company story, inline stats, and CTAs on the right.
Numbered Principles
Heading on the left and numbered company principles on the right.
Team Cards with Bios
Three-column grid of team member cards with avatars, roles, and short bios.