1.1.1 • Published 2 years ago

react-accordion-responsive v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

React Accordion

Easy to use React accordion. It's reusable.

<Accordion data={data} />

data must be an array of following object.

{
  title: "Accordion header"
  context: "Accordion text"
}

Options

NameTypeDefaultDescription
closePreviousBooleanfalseto close previously opened accordion tab when opening other

Example

const data = [
  {
    title: "What is FAQ process?",
    context:
      "FAQ stands for Frequently Asked Questions. It's your opportunity to communicate with the most important visitors to your website."
  },
  {
    title: "Which is correct FAQ or FAQs?",
    context:
      "noun, plural FAQs, FAQ's. Chiefly Digital Technology. a document, in question and answer format, that introduces newcomers to a topic or answers common questions."
  },
  {
    title: "What makes a good FAQ page?",
    context:
      "Customer Focus. As always, the key to a great website or FAQ page is to keep it customer focused. Just like your products and services."
  }
]

<Accordion data={data} />

React Accordion