Staaarter

Release Card Grid

Changelog laid out as a responsive card grid, one card per release with a version badge and description; a release can optionally include a link to its full release notes, so some cards show a link and some don't.

By Staaarter Team
Changelog
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge, button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/release-card-grid.json

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

Usage

The file also exports changelog9Demo, 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 { Changelog9, changelog9Demo } from "@/components/blocks/changelog/changelog9";

export default function Page() {
  return <Changelog9 {...changelog9Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"What's new"Page heading above the card grid.
descriptionstring"Recent releases and updates."Supporting copy under the heading.
releasesCardRelease[]noneReleases to render as cards.
classNamestringnoneExtra classes for the outer section element.

Types

interface CardRelease {
  version: string;
  date: string;
  description: string;
  href?: string;
}

Behavior notes

  • A card's "Read release notes" link only renders when that release has an `href`, proving the optional-link path; cards without one simply end after the description.
  • The link is decorative in the demo data (`href: "#"`) since there's no real per-release notes page behind it; wire it up to a real route to make it functional.
  • Grid is `grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`, so it collapses to a single column on mobile and expands up to three across on larger screens.