BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/SmoothUI Registry/faq-2

Faq 2

smoothui-registry/faq-2
FreeBlock

FAQ accordion block with expandable questions

Install it

npx shadcn@latest add https://www.smoothui.dev/r/faq-2.json

Source

index.tsxwww.smoothui.dev/r/faq-2.json · first 6 KB
1"use client";
2
3import { AnimatePresence, motion, useReducedMotion } from "motion/react";
4import { useState } from "react";
5
6const ANIMATION_DURATION = 0.6;
7const STAGGER_DELAY = 0.1;
8const INITIAL_Y_OFFSET = 20;
9const HOVER_SCALE = 1.01;
10const TAP_SCALE = 0.99;
11const ROTATION_OPEN = 180;
12const ROTATION_CLOSED = 0;
13const CONTENT_DELAY = 0.1;
14const INITIAL_CONTENT_Y = -10;
15
16interface FaqsAccordionProps {
17 description?: string;
18 faqs?: Array<{
19 question: string;
20 answer: string;
21 }>;
22 title?: string;
23}
24
25export function FaqsAccordion({
26 title = "Frequently Asked Questions",
27 description = "Find answers to common questions about our product and services",
28 faqs = [
29 {
30 answer:
31 "Smoothui is a modern UI component library that provides beautiful, animated components for building stunning user interfaces. It includes pre-built components with smooth animations and customizable themes.",
32 question: "What is Smoothui?",
33 },
34 {
35 answer:
36 "Getting started is easy! Simply install the package via npm or yarn, import the components you need, and start building. We provide comprehensive documentation and examples to help you get up and running quickly.",
37 question: "How do I get started?",
38 },
39 {
40 answer:
41 "Yes! Smoothui is completely free and open source. You can use it in both personal and commercial projects without any restrictions. We believe in making beautiful UI components accessible to everyone.",
42 question: "Is it free to use?",
43 },
44 {
45 answer:
46 "Absolutely! All components are fully customizable. You can modify colors, spacing, animations, and more using CSS variables or by extending the component classes. We also provide a theming system for easy customization.",
47 question: "Can I customize the components?",
48 },
49 {
50 answer:
51 "Currently, Smoothui supports React and Next.js. We're working on expanding support to other popular frameworks like Vue, Svelte, and Angular in the coming months.",
52 question: "What frameworks are supported?",
53 },
54 {
55 answer:
56 "We release updates regularly, typically every 2-3 weeks. This includes new components, bug fixes, performance improvements, and new features. You can follow our changelog to stay updated on the latest releases.",
57 question: "How often do you release updates?",
58 },
59 ],
60}: FaqsAccordionProps) {
61 const shouldReduceMotion = useReducedMotion();
62// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • https://smoothui.dev/r/tokens.json

Files it writes

  • index.tsx

Facts

Registry
SmoothUI Registry
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

www.smoothui.dev educlopez/smoothui on GitHub Raw registry item This item as JSON

More from SmoothUI Registry

All 177 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Chat Templatechat-templateSmoothUI RegistryBlocksFree2 deps · 4 files
Cta 1cta-1SmoothUI RegistryBlocksFree1 dep
Cta 2cta-2SmoothUI RegistryBlocksFree1 dep
Cta 3cta-3SmoothUI RegistryBlocksFree1 dep
Faq 1faq-1SmoothUI RegistryBlocksFree2 deps
Faq 3faq-3SmoothUI RegistryBlocksFree2 deps
Faq 4faq-4SmoothUI RegistryBlocksFree2 deps
Features 1features-1SmoothUI RegistryBlocksFree1 dep
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