0.0.2 • Published 5 months ago

@multimatic/react-collapsibles v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Modify by Multimatic

React Collapsibles

Now you see it, now you don't.

Quick Start

Installation

$ yarn add @trbl/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:

License

MIT Copyright (c) TRBL, LLC