Staaarter

Team Blog Highlights

A grid of blog article preview cards for a careers page's culture/blog section. Each card shows a thumbnail image, article title, a short excerpt, and an author row with the author's avatar, name, and publish date.

By Staaarter Team
Careers
Docs
Live preview

Docs

Installation

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

npx shadcn add https://staaarter.com/r/team-blog-highlights.json

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

Usage

The file also exports careers30Demo, 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 { Careers30, careers30Demo } from "@/components/blocks/careers/careers30";

export default function Page() {
  return <Careers30 {...careers30Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"From our engineering blog"Section heading.
descriptionstring"Notes on how the team builds, ships..."Section subheading.
postsBlogHighlight[]noneArticle preview cards to render.
classNamestringnoneExtra classes for the outer section element.

Types

interface BlogHighlight {
  title: string;
  excerpt: string;
  image: { src: string; alt: string };
  authorName: string;
  authorAvatar?: string;
  publishedOn: string;
}

Behavior notes

  • Fully static, no interactivity. Author avatars fall back to initials (`initialsFromName`) if `authorAvatar` is omitted.