Skip to main content

Overview

The FaqItem 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

Source: 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

From data/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

Questions should be specific: Avoid vague questions like “¿Cómo funciona?” - instead use “¿Cómo funcionan las bolsas termoencogibles?”
Answers should be concise: Aim for 2-4 sentences. If more detail is needed, link to a dedicated page or guide.
Avoid HTML in question/answer text. The FAQ component renders plain text only. Use line breaks sparingly.

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?

State Management

FAQs typically use accordion-style interaction with local state: