Staaarter

Platform Architecture Diagram

A three-column architecture diagram. Each column starts with a parent category card (icon, title, description) and branches down into a list of nested child items, connected with CSS border lines styled as a simple tree diagram.

By Staaarter Team
Feature
Docs
Live preview

Docs

Installation

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

npx shadcn add https://staaarter.com/r/platform-architecture-diagram.json

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

Usage

The file also exports feature115Demo, 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 { Feature115, feature115Demo } from "@/components/blocks/feature/feature115";

export default function Page() {
  return <Feature115 {...feature115Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingstringnoneSection heading.
descriptionstringundefinedSupporting paragraph under the heading.
categoriesArchitectureCategory[]noneParent category cards, each with its own list of child items.
classNamestringnoneExtra classes for the outer section element.

Types

interface ArchitectureCategory {
  icon: LucideIcon;
  title: string;
  description: string;
  children: string[];
}

Behavior notes

  • Purely presentational: this is a plain Server Component with no client-side state.
  • The connecting branch lines are built entirely with border and pseudo-element (`before:`) CSS utilities, not SVG or JavaScript-measured positions, so they render identically in the live preview, the Code tab's static HTML, and every card thumbnail.
  • A category with an empty `children` array renders as a standalone parent card with no branch lines beneath it.