Staaarter

Glassmorphism Cards

A two-column grid of always-open FAQ cards styled with a frosted glass effect (translucent background, backdrop blur, soft border), set against a subtle blurred accent blob for a modern, layered look.

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 badge dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/glassmorphism-cards.json

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

Usage

The file also exports faq28Demo, 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 { Faq28, faq28Demo } from "@/components/blocks/faq/faq28";

export default function Page() {
  return <Faq28 {...faq28Demo} />;
}

Props

PropTypeDefaultDescription
badgestringnoneSmall label shown above the heading.
headingstringnoneSection heading.
descriptionstringnoneSupporting copy under the heading.
faqsFaqItem[]noneList of question/answer pairs rendered as glass cards.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • All cards are always expanded, there is no accordion toggle, this is a plain server component.
  • The blurred blob behind the grid is a decorative, non-interactive absolutely-positioned div with no pointer events.