Staaarter

Window Style Cards

Cards mimic a desktop OS window: a title bar strip holds three small decorative circles on the left and the question as the window title, with the answer in a plain content area below, for a playful retro-OS aesthetic.

By Staaarter Team
FAQ
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/window-style-cards.json

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

Usage

The file also exports faq50Demo, 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 { Faq50, faq50Demo } from "@/components/blocks/faq/faq50";

export default function Page() {
  return <Faq50 {...faq50Demo} />;
}

Props

PropTypeDefaultDescription
badgestringnoneOptional small uppercase label above the heading.
headingstringnoneSection heading.
descriptionstringundefinedOptional supporting copy under the heading.
itemsQaItem[]noneQuestion and answer pairs, each rendered as a window-style card.
classNamestringnoneExtra classes for the outer section element.

Types

type QaItem = { question: string; answer: string };

Behavior notes

  • The three circles in the title bar are purely decorative traffic-light stand-ins using bg-muted-foreground/30, not literal red/yellow/green, and have no close/minimize/maximize functionality.
  • All cards are always open; there is no expand/collapse interaction.
  • Purely presentational server component with no event handlers, consistent with the decorative-only title bar.