1.0.4 • Published 1 year ago

nm-accordion v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

NM Accordion

NM Accordion is a simple React component for creating accordion-style interfaces.

Installation

To install NM Accordion, you can use npm or yarn:

npm install nm-accordion

or

yarn add nm-accordion

Usage

  1. Import the Accordion component into your React application:
import Accordion from 'nm-accordion';
  1. Place the <Accordion /> component in your JSX where you want the accordion to appear:
<Accordion />
  1. Make sure you have provided the necessary data in a JSON file named Accordiondata.json. Each item in this file should have a unique id, title, and content.

Example of Accordiondata.json:

[
  {
    "id": "section1",
    "title": "Section 1",
    "content": "Content of section 1."
  },
  {
    "id": "section2",
    "title": "Section 2",
    "content": "Content of section 2."
  }
]

Dependencies

  • React
  • Bootstrap 5

License

This project is licensed under the ISC License.


1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago