@multimatic/react-node-position
v0.0.3
Published
Send nodes.
Downloads
9
Readme
Modify by Multimatic
React Collapsibles
Now you see it, now you don't.
Quick Start
Installation
$ yarn add @multimatic/react-collapsibles
Compositon
<Collapsible clickableNode={<p>Click to open</p>}>
...
</Collapsible>
<CollapsibleGroup
allowMultiple={false}
collapsibles={[
{
clickableNode: <p>Click to open</p>,
children: <p>this</p>,
},
{
clickableNode: <p>Or click to open</p>,
children: <p>this instead</p>,
},
]}
/>
Demo
To demo locally, clone the repo and
$ yarn install
$ npm run dev
$ open http://localhost:3000
Documentation
All available props can be found via the references below:
- Collapsible
- CollapsibleGroup
License
MIT Copyright (c) Multimatic