Help Center
shadcnexamples/help-centerFreeBlock
Searchable help center with article categories, FAQ accordions, and support contact options. Designed to improve self-service resolution and reduce customer support tickets.
Install it
npx shadcn@latest add https://shadcnexamples.com/r/help-center.jsonSource
1import {2 Accordion,3 AccordionContent,4 AccordionItem,5 AccordionTrigger,6} from "@/components/ui/accordion";78interface FAQItem {9 id: string;10 question: string;11 answer: string;12}1314interface FAQAccordionProps {15 items: FAQItem[];16}1718const FAQ = ({ items }: FAQAccordionProps) => {19 return (20 <div className="w-full max-w-4xl mx-auto">21 <Accordion type="single" collapsible className="space-y-4">22 {items.map((item) => (23 <AccordionItem24 key={item.id}25 value={item.id}26 className="border border-border rounded-lg px-4 bg-card shadow-sm hover:shadow-md transition-shadow duration-200"27 >28 <AccordionTrigger className="text-left text-lg font-medium hover:no-underline py-4">29 {item.question}30 </AccordionTrigger>31 <AccordionContent className="text-muted-foreground pb-6 text-base leading-relaxed">32 {item.answer}33 </AccordionContent>34 </AccordionItem>35 ))}36 </Accordion>37 </div>38 );39};4041export default FAQ;
What it pulls in
npm packages
Other registry items
Files it writes
More from @shadcnexamples
All 70 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Activity Feedactivity-feed | @shadcnexamples | Blocks | Free | 1 dep | |
| Add Product Formadd-product-form | @shadcnexamples | Blocks | Free | 4 deps · 3 files | |
| AI Chatai-chat | @shadcnexamples | Blocks | Free | 2 deps · 8 files | |
| Authenticationauthentication | @shadcnexamples | Blocks | Free | 1 dep · 2 files | |
| Bento Gridbento-grid | @shadcnexamples | Blocks | Free | 1 dep | |
| Blog Detail Pageblog-detail-page | @shadcnexamples | Blocks | Free | 1 dep · 4 files | |
| Blog Pageblog-page | @shadcnexamples | Blocks | Free | 1 dep · 4 files | |
| Changelog Pagechangelog-page | @shadcnexamples | Blocks | Free | 1 dep |
