Staaarter

Three Column Grid

Question and answer pairs laid out in a responsive grid: one column on small screens, two from sm, three from lg. Every entry is always open with no cards or borders, just generous grid spacing.

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/three-column-grid.json

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

Usage

The file also exports faq9Demo, 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 { Faq9, faq9Demo } from "@/components/blocks/faq/faq9";

export default function Page() {
  return <Faq9 {...faq9Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Frequently asked questions"Section heading.
descriptionstringundefinedOptional supporting copy under the heading.
itemsFaq9Item[]noneOrdered list of question and answer entries placed into the grid.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • Fully static and decorative: every question and answer is always visible in its grid cell, there is no accordion, toggle, or any other interactive element.
  • Grid cells have no card border or background, relying purely on gap-x-8/gap-y-10 spacing to separate entries.
  • Column count responds at sm (2 columns) and lg (3 columns) breakpoints; item count does not need to be a multiple of 3 since the grid simply leaves the last row short.