npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-faq-list

v1.1.5

Published

Provide the smart React UI component to display FAQ and Lists for users.

Readme

🫨 React FAQ List

A modern, accessible, and customizable FAQ component for React applications.
Perfect for product pages, help centers, and onboarding flows. Built for performance and developer experience.

npm License Downloads


✨ Overview

react-faq-list provides a plug-and-play FAQ (Frequently Asked Questions) accordion component with zero dependencies. Designed with customization, accessibility, and simplicity in mind — this component works out of the box with just a few lines of code.


🌟 Features

  • ✅ Simple integration with any React project
  • ✅ Fully responsive across devices
  • ✅ Minimal configuration required
  • ✅ Highly customizable via props
  • ✅ No third-party dependencies
  • ✅ Keyboard and screen reader accessible (WAI-ARIA ready)

📦 Installation (If you find this package useful, consider buying me a coffee ☕ )

npm install react-faq-list
# or
yarn add react-faq-list

🚀 Getting Started

import ReactFaqList from 'react-faq-list';

const faqs = [
  {
    question: 'Is this component responsive?',
    answer: 'Yes, it works seamlessly on mobile and desktop devices.',
  },
  {
    question: 'Can I use custom styles?',
    answer: 'Absolutely. Style each question and answer block using inline styles or your own CSS.',
  },
];

export default function FAQSection() {
  return (
    <ReactFaqList
      data={faqs}
      questionKeyName="question"
      answerKeyName="answer"
      questionStyles={{ fontSize: '18px', fontWeight: '600', color: '#0078D4' }}
      answerStyles={{ fontSize: '16px', lineHeight: '1.5' }}
    />
  );
}

🧩 Component Props

| Prop | Type | Description | Required | |-------------------|----------|----------------------------------------------------------------------|----------| | data | array | Array of objects containing FAQ entries | ✅ | | questionKeyName | string | Property name in each object for the question text | ✅ | | answerKeyName | string | Property name in each object for the answer text | ✅ | | questionStyles | object | Optional inline styles for the question text | ❌ | | answerStyles | object | Optional inline styles for the answer text | ❌ |


☕ Support the Developer

Support the project by buying me a coffee
Your support helps maintain and improve this project!


👀 Live Demo

Explore the component in action:
🔗 Open Stackblitz Demo


🛠️ Use Cases

  • Landing page FAQs
  • Support/help center widgets
  • Product comparison pages
  • SaaS onboarding flows

👤 Author

Created by Mohit Kapoor


📄 License

This project is licensed under the MIT License.