BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/bagUi/faq1

FAQ Exemple 1

bagui/faq1
FreeBlock

Frequently asked questions section with collapsible items.

Live preview

live · rendered by the registry
Rendered by bagUi on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.bagui.pro/r/faq1.json

Source

registry/default/blocks/faq/faq1.tsxwww.bagui.pro/r/faq1.json · first 6 KB
1'use client';
2
3import { useState, useEffect, useRef } from 'react';
4import { Plus } from 'lucide-react';
5import gsap from 'gsap';
6import { ScrollTrigger } from 'gsap/ScrollTrigger';
7
8gsap.registerPlugin(ScrollTrigger);
9
10interface FAQItem {
11 id: string;
12 question: string;
13 answer: string;
14}
15
16const faqItems: FAQItem[] = [
17 {
18 id: "001",
19 question: "What is included in Bag/UI?",
20 answer:
21 "Bag/UI includes production-ready React components built with shadcn/ui and Tailwind CSS. Each block is fully customizable, responsive, and ready to integrate directly into your projects.",
22 },
23 {
24 id: "002",
25 question: "Do I need to install dependencies?",
26 answer:
27 "Components are built with React, TypeScript, and Tailwind CSS. If your project already uses these, you can paste the components directly. For new projects, we provide setup instructions in the documentation.",
28 },
29 {
30 id: "003",
31 question: "Can I customize the components?",
32 answer:
33 "Absolutely! All components are fully customizable. You have complete access to the code and can modify colors, typography, spacing, and functionality to match your design system.",
34 },
35 {
36 id: "004",
37 question: "What about browser support?",
38 answer:
39 "Components are tested on all modern browsers including Chrome, Firefox, Safari, and Edge. We use standard web technologies that work consistently across platforms.",
40 },
41 {
42 id: "005",
43 question: "Is there a license?",
44 answer:
45 "Yes, each component comes with a clear license. You can use components in personal projects, commercial projects, and client work. Check the license terms in the documentation.",
46 },
47 {
48 id: "006",
49 question: "How often are new blocks added?",
50 answer:
51 "New blocks are released regularly. All updates are free for existing users. Subscribe to our newsletter for announcements about new components and features.",
52 },
53];
54
55export default function FAQ() {
56 const [expandedId, setExpandedId] = useState<string>('');
57 const containerRef = useRef<HTMLDivElement>(null);
58 const headerRef = useRef<HTMLDivElement>(null);
59 const faqListRef = useRef<HTMLDivElement>(null);
60 const itemsRef = useRef<(HTMLDivElement | null)[]>([]);
61
62 useEffect(() => {
63 gsap.registerPlugin(ScrollTrigger);
64
65 const ctx = gsap.context(() => {
66 // Animate header
67 if (headerRef.current) {
68// … truncated

What it pulls in

npm packages

  • framer-motion
  • lucide-react

Files it writes

  • registry/default/blocks/faq/faq1.tsx

Facts

Registry
bagUi
Type
registry:block
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on bagUi www.bagui.pro anelkabag/bag-ui on GitHub Raw registry item This item as JSON

More from bagUi

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Dashboard Chat Appchat-app1bagUiBlocksFree2 deps
Contact Exemple 1contact-1bagUiBlocksFree2 deps
Contact Exemple 2contact-2bagUiBlocksFree2 deps
CTA Exemple 1cta-1bagUiBlocksFree2 deps
CTA Exemple 2cta-2bagUiBlocksFree2 deps
Modern Store Dashboarddashboard-storebagUiBlocksFree2 deps
Feature Exemple 1feature-1bagUiBlocksFree2 deps
Feature Exemple 2feature-2bagUiBlocksFree2 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