@trbl/react-collapsibles

0.1.0 • Public • Published

NPM Bundle Size Supported by TRBL

React Collapsibles

Now you see it, now you don't.

Quick Start

Installation

$ yarn add @trbl/react-collapsibles

Composition

  import React, { Fragment } from 'react';
  import { CollapsibleGroup, Collapsible, CollapsibleToggler, CollapsibleContent } from '@trbl/react-collapsibles';

  const App = () => {
    return (
      <CollapsibleGroup>
        <Collapsible>
          <CollapsibleToggler>
            ...
          </CollapsibleToggler>
          <CollapsibleContent>
            ...
          </CollapsibleContent>
        </Collapsible>
      </CollapsibleGroup>
    )
  }

  export default App;

Demo

To demo locally, clone the repo and

$ yarn
$ yarn dev
$ open http://localhost:3000

Documentation

All available props can be found via the references below:

Contribution

Help us, or let us help you help us.

License

MIT Copyright (c) TRBL, LLC

/@trbl/react-collapsibles/

    Package Sidebar

    Install

    npm i @trbl/react-collapsibles

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    80.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • chrishomsey
    • jacobsfletch
    • trouble