BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/efferd/faqs-4

faqs-4

efferd/faqs-4
FreeBlock

Multi-category FAQ section with sidebar filters, adaptive accordion layout, and elegant interactive transitions.

Install it

npx shadcn@latest add https://legacy.efferd.com/r/faqs-4.json

Source

registry/blocks/faqs/4/faqs-section.tsxlegacy.efferd.com/r/faqs-4.json
1"use client";
2import { CreditCard, Feather, LayoutGrid, LifeBuoy, Power } from "lucide-react";
3import React from "react";
4import {
5 Accordion,
6 AccordionContent,
7 AccordionItem,
8 AccordionTrigger,
9} from "@/components/ui/accordion";
10import { Button } from "@/components/ui/button";
11import { cn } from "@/lib/utils";
12
13const categories = [
14 { icon: LayoutGrid, id: "all", label: "All Topics" },
15 { icon: Power, id: "getting-started", label: "Getting Started" },
16 { icon: Feather, id: "features", label: "Features" },
17 { icon: CreditCard, id: "billing", label: "Billing" },
18 { icon: LifeBuoy, id: "support", label: "Support" },
19];
20
21export function FaqsSection() {
22 const [activeCategory, setActiveCategory] = React.useState("all");
23
24 const filtered = faqs.filter((faq) => {
25 const matchesCategory =
26 activeCategory === "all" || faq.category === activeCategory;
27 return matchesCategory;
28 });
29
30 const currentCategory = React.useMemo(
31 () => categories.find((cat) => cat.id === activeCategory),
32 [activeCategory]
33 );
34
35 return (
36 <section className="mx-auto min-h-screen w-full max-w-5xl">
37 <div className="flex flex-col items-center justify-center gap-4 px-4 py-16">
38 <h2 className="text-balance font-black font-mono text-4xl md:text-5xl lg:font-black">
39 FaQs
40 </h2>
41 <p className="text-muted-foreground">Your questions answered here.</p>
42 </div>
43 <div className="relative grid min-h-full grid-cols-1 py-12 md:grid-cols-3">
44 <div className="flex h-full items-start justify-center border-b pb-2 md:border-b-0">
45 <div className="flex w-max flex-wrap items-start justify-start gap-2 md:flex-col md:justify-center">
46 {categories.map((cat) => (
47 <Button
48 className={cn(
49 "border border-transparent",
50 activeCategory === cat.id && "border-border"
51 )}
52 key={cat.id}
53 onClick={() => setActiveCategory(cat.id)}
54 variant={activeCategory === cat.id ? "outline" : "ghost"}
55 >
56 <cat.icon className="size-4" />
57 {cat.label}
58 </Button>
59 ))}
60 </div>
61 </div>
62 <div className="col-span-2 space-y-5 px-4 py-5">
63 {currentCategory && (
64 <div className="flex items-center gap-2">
65 <currentCategory.icon className="size-4" />
66// … truncated

What it pulls in

Other registry items

  • accordion
  • button

Files it writes

  • registry/blocks/faqs/4/faqs-section.tsx

Facts

Registry
efferd
Type
registry:block
Access
Free
Files written
1
Licence
NOASSERTION
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

legacy.efferd.com shabanhr/efferd-ui on GitHub Raw registry item This item as JSON

More from efferd

All 40 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
auth-1auth-1efferdBlocksFreeno deps · 2 files
auth-2auth-2efferdBlocksFree1 dep · 3 files
contact-1contact-1efferdBlocksFreeno deps
contact-2contact-2efferdBlocksFreeno deps
cta-1cta-1efferdBlocksFreeno deps
cta-2cta-2efferdBlocksFreeno deps
cta-3cta-3efferdBlocksFreeno deps
cta-4cta-4efferdBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex