Staaarter

Gradient Border Glow

A FAQ grid where each card sits inside a thin gradient-filled wrapper (primary to transparent to primary) so it reads as a glowing gradient border, with an inner background panel holding the question and answer. Hovering a card adds a soft primary-tinted shadow for a premium shine effect.

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/gradient-border-glow.json

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

Usage

The file also exports faq60Demo, 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 { Faq60, faq60Demo } from "@/components/blocks/faq/faq60";

export default function Page() {
  return <Faq60 {...faq60Demo} />;
}

Props

PropTypeDefaultDescription
badgestringnoneSmall label shown above the heading.
headingstringnoneSection heading.
descriptionstringnoneSupporting copy under the heading.
faqsFaqItem[]noneList of question/answer cards, always shown open.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • This is a plain server component: all answers are always visible, there is no click-to-expand state.
  • The gradient border is the standard padding-trick (a gradient-filled wrapper div with 1px of padding around an inner background panel), and the hover glow is a CSS shadow-color transition; neither involves animation or JavaScript.