You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Padding for question area (supports CSS shorthand)
answerPadding
string
'0 16px 16px 16px'
Padding for answer area (supports CSS shorthand)
Webflow Setup
Create FAQ Collection with "Question" and "Answer" fields
Add FAQ component to canvas
Add Collection List inside the component's slot
Add elements for question and answer:
Question element: add data-faq-question attribute
Answer element: add data-faq-answer attribute
Bind to Collection fields
Usage
importFAQfrom'./components/FAQ';<FAQtype="single"defaultOpenIndex={1}animationDuration={0.3}chevronColor="var(--icon-color)"borderColor="var(--border-color)"borderWidth="1px"borderRadius="8px"hoverColor="var(--hover-bg)"questionColor="var(--text-primary)"answerColor="var(--text-secondary)"questionPadding="20px"answerPadding="0 20px 20px 20px">{/* Collection List goes here */}</FAQ>
Styling Approach
All styling is controlled through component props in Webflow Designer. Each prop accepts:
Direct values: #FF0000, 16px, 600, 'Inter', sans-serif