Free Webinar β Building for Scale with Pion & Webflow
0.1.0
FAQ Accordion
FAQ accordion with search and category filtering.
FAQ accordion with search and category filtering.
Features
- β Zero dependencies - Pure React implementation
- β Full accessibility - ARIA labels, keyboard navigation, screen reader support
- β Theme support - Light, dark, and auto modes
- β Reduced motion support - Respects user preferences
Props
items
- Type:
string - FAQ items (JSON array)
searchable
- Type:
boolean- Default:true - Enable search
searchPlaceholder
- Type:
string- Default:'Search FAQs...' - Search placeholder
allowMultiple
- Type:
boolean- Default:false - Allow multiple open
showCategories
- Type:
boolean- Default:false - Show categories
theme
- Type:
'light' | 'dark' | 'auto'- Default:'auto' - Theme mode
radius
- Type:
number- Default:8 - Border radius in pixels
density
- Type:
'comfortable' | 'compact'- Default:'comfortable' - Layout density
className
- Type:
string - Additional CSS class
Customization
CSS Variables
Override these variables in your Webflow custom code or CSS:
--cc-radius: 8px; /* Border radius */Webflow Classes
Target these classes in Webflow Designer for custom styles:
.cc-faq-accordion- Component wrapper