@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @trbl/react-collapsibles

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

80.8 kB

Total Files

5

Last publish

Collaborators

  • chrishomsey
  • jacobsfletch
  • trouble