Overview
TheFaqItem interface represents a single FAQ entry with a question and answer pair. Used primarily on the home page to address common customer inquiries about products, services, and processes.
Type Definition
types.ts:40-43
Properties
string
required
The question text, typically starting with interrogative words (“¿Qué..?”, “¿Cómo..?”, “¿Por qué..?”).
string
required
The answer text providing clear, concise information. Can be multiple sentences but should remain focused.
Usage Example
Fromdata/data.tsx, the home page FAQ section uses an array of FaqItem objects:
data/data.tsx
Rendering FAQs with Accordion
The Home page (pages/Home.tsx) renders FAQs using an interactive accordion:
pages/Home.tsx
Best Practices
Common FAQ Patterns
Product Questions
- What is [product] and how does it work?
- What’s the difference between [product A] and [product B]?
- Do you offer [specific feature]?
Process Questions
- How do I order/request samples?
- What certifications do you have?
- Do you ship to [location]?
Support Questions
- How can I contact technical support?
- What’s your return/refund policy?
- Do you offer training/installation?