Staaarter

Metro Tiles

A grid of bold FAQ tiles that alternate between primary-colored and inverted foreground-colored backgrounds. Each tile carries a lucide icon, the question in bold light-colored text, and the answer below it in a slightly muted tone of the same text color, giving the section a tile-dashboard feel.

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/metro-tiles.json

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

Usage

The file also exports faq43Demo, 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 { Faq43, faq43Demo } from "@/components/blocks/faq/faq43";

export default function Page() {
  return <Faq43 {...faq43Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Frequently asked questions"Section heading.
faqsFaqTileItem[]noneList of question/answer tiles.
classNamestringnoneExtra classes for the outer section element.

Types

interface FaqTileItem {
  question: string;
  answer: string;
}

Behavior notes

  • Static server component: tiles are always fully visible, there is no click-to-expand behavior.
  • Tile background alternates between bg-primary and bg-foreground by array index, and the icon is picked from a fixed lucide icon array indexed by position, not a component-reference prop.