expandible
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Expandible

Making Expandibles / Collapsible / Accordian core easy ❤️

Build Status NPM version

Built with / for TypeScript / React. Expand and collapse certain DOM with silky smooth transitions.

Powered by your github ⭐s

Usage

npm install expandible --save-dev

Use with react:

import {Expandible} from "expandible";
 
// Later
 
{/** Toggle */}
<button onClick={() => this.setState({ open: !this.state.open })}>Toggle</button>
 
{/** Expandible */}
<Expandible open={this.state.open}>
  <div>
    Hello world!
  </div>
</Expandible>

Demo

The above code is exactly how this works:

Readme

Keywords

none

Package Sidebar

Install

npm i expandible

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • basarat