Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Card Grid FAQ Block for React

A static FAQ grid for a seed shop: six questions with their answers on show, in cells that share hairlines, each with an icon tile and a topic tag.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A card-grid FAQ for React with Base UI. A centred title and one sentence sit above a grid of six cells that share hairlines: three across on a desktop, two on a tablet and one on a phone. Each cell holds an icon in a muted tile, a topic tag, the question as a heading and its whole answer, so a visitor can scan every answer at once and nothing has to be opened. The grid hangs from a rule with + marks that meets the page's rails. The page's rails and top rule come from the Guides spine, so the block lines up with its neighbours in a stack. It's built from Guides and Badge, with CSS transitions for the entrance and your theme's tokens for every colour. For product pages and shops where there are only a few questions and every one deserves to be read.

FAQ

How do I change the questions?

Edit CELLS at the top of the file: each entry is an id, a topic for the tag, an icon from Lucide, the question and its answer, one to three sentences. Keep the count a multiple of six: the grid is three across on a desktop and two on a tablet, so six fills every row, and any other count leaves an empty cell where the border colour shows through.

Why does nothing open?

The grid is the feature: every answer is on the page, so a visitor reads it without a click and a search engine sees it without any scripting. If your list is long or its answers run past three sentences, use one of the accordion FAQ blocks instead, which keep the page short.

How is it read by a screen reader?

The cells are a list, and each question is an h3 under the section's h2, so a headings list shows all six. The icon tiles are decorative and hidden from assistive technology; the topic tag is read as text. There are no controls, so Tab passes straight through.

Does it follow my theme?

Yes. Every colour is a theme token: the tiles are muted, the tags are outline badges and the cells are your background, so the grid is light on a light page and dark on a dark one, in every preset. Nothing uses the primary colour.

What moves, and what happens with reduced motion?

The header and the grid fade up once when the page loads, with CSS transitions. With reduced motion the transitions are off and the section simply appears.

How does it fit on a phone?

The cells stack in one column, divided by hairlines, with the same padding. Questions and answers wrap, and nothing scrolls sideways at 320 pixels.

  • Pro

    Masonry FAQ

    Cards and grids

    A masonry FAQ for an aquarium shop: six answer tiles of different heights packed into columns inside a drawn frame, all on show, with one larger featured tile.

  • Pro

    Expandable Cards FAQ

    Cards and grids

    An FAQ of six separate cards for a candle subscription, each a collapsible with a topic tag and a round plus that fills in and becomes a minus; the open card lifts.

  • Pro

    Minimal FAQ

    Cards and grids

    A type-forward FAQ for a stationery brand: six questions in large type with their answers on show in a definition list, no cards or row lines, and one contact link.

  • Pro

    A showcase hero for a single plan: the headline and the price in a card in card, over a grid of eight included features that share their hairlines.

  • Pro

    Pricing With FAQ

    Proof and guarantees

    Plans answered by the pricing FAQ for an e-commerce builder: a compact plan list, a row each with its name, price and call to action, beside an accordion of six questions with the first one open, in one ruled band.

  • Pro

    Mega Help Index FAQ

    Cards and grids

    A help-index FAQ for a DIY store: sixteen questions in four topic columns on shared hairlines, with the chosen answer in a framed reading panel above them.