Staaarter

Framed Studio Card

The entire about section lives inside one bordered card with small plus-sign corner marks, a square portrait beside the story copy, and a stats strip along the bottom, separated by a rule.

By Staaarter Team
About
Docs
Live preview

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/framed-studio-card.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about42.tsx instead.

Usage

The file also exports about42Demo, 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 { About42, about42Demo } from "@/components/blocks/about/about42";

export default function Page() {
  return <About42 {...about42Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading, inside the card.
headingstringnoneCard heading.
storystringnoneBody paragraph next to the portrait.
portraitMediaSlotImageundefinedSquare portrait or photo; falls back to a placeholder via MediaSlot.
statsStatItem[]noneStat tiles along the bottom of the card.
classNamestringnoneExtra classes for the outer section element.

Types

type StatItem = { title: string; value: string };

Behavior notes

  • Everything, portrait, copy, and stats, is nested inside a single relatively-positioned bordered card rather than composed from separate blocks side by side, unlike About13's asymmetric image-plus-details-list layout.
  • Four small Plus icons from lucide-react are absolutely pinned just outside each corner of the card as static decorative header marks; they carry aria-hidden and never move or animate.
  • The stats strip sits below a top border inside the same card, distinct from About14's stats-bar-then-separate-card pattern where the stats and the story card are two visually separate shapes.