# react-easy-accordion

> A simple accordion for react. You can pass any children to accordion body.

Latest version **0.1.4** (published 2021-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-easy-accordion
pnpm add react-easy-accordion
yarn add react-easy-accordion
bun add react-easy-accordion
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-06-20 |
| First published | 2021-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 30.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kelum Chathuranga |
| Maintainers | kelum |
| Keywords | react, accordion, react accordion |

## Links

- npm: https://www.npmjs.com/package/react-easy-accordion
- npm.io page: https://npm.io/package/react-easy-accordion

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [web-vitals](https://npm.io/package/web-vitals.md) ^1.1.2
- [react-scripts](https://npm.io/package/react-scripts.md) 4.0.3
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^11.2.7
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.14.1
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^12.8.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2021-06-20
- 0.1.3 — 2021-06-20
- 0.1.2 — 2021-06-19
- 0.1.1 — 2021-06-19
- 0.1.0 — 2021-06-19

## README

# Easy react accordion
A simple accordion for react. You can pass any children to accordion body.

## Installation

Install using npm install.

``
npm install react-easy-accordion
``

## Usage

``
import { Accordion, AccordionItem } from 'react-easy-accordion'
``

## Example code

```
<Accordion>
    <AccordionItem heading="Heading 1" dataId="1">
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's</p>
    </AccordionItem>
    <AccordionItem heading="Heading 2" dataId="2">
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's</p>
    </AccordionItem>
</Accordion>
```

## Accordion Item props

| Name | Description |
| ------ | ------ |
| heading | string |
| dataId | string |
| children | any |

---
_Source: https://npm.io/package/react-easy-accordion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
