React Accordion Component
Minimal UI Accordion Component Written In React.
Installation
Usage
To get the basic style of the component, link in your index.html
the CSS file for the Accordion:
(normally located under your node_modules
directory)
After that just require the component in the desired place of use:
The Accordion
accepts an array of objects, where each of them may have:
title
: title for an accordion element (string
)onClick
: callback function triggered when an accordion element is clicked (function
)content
: content for an accordion element (string
)
Example
When rendering (using jsx
):