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.
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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Frequently asked questions" | Section heading. |
| faqs | FaqTileItem[] | none | List of question/answer tiles. |
| className | string | none | Extra 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.
More FAQ Blocks
View all →collapsible-accordion
Collapsible Accordion
Stacked cards with expandable sections, for full-length answers in a compact format.
open-list-layout
Open List Layout
Questions with answers displayed directly below in a simple always-open list.
three-column-grid
Three Column Grid
Q&A pairs arranged in a responsive grid layout, always open.
tabbed-categories
Tabbed Categories
Sidebar navigation with category tabs and an accordion of that category's questions.
searchable-accordion
Searchable Accordion
Search input that filters accordion items in real-time by question and answer text.
grouped-sections
Grouped Sections
FAQs organized into titled sections, each with its own independent accordion below it.