Sandiwch Expando
An Animated Sandwich-Button to X React Component
Installation: npm install sandwich-expando -S
.
If you want to experiment locally, you can install beefy
(npm install -g beefy
), and then run npm run sample
to run a live-reloading demo app.
You can edit sample.js
to change the input parameters, or index.js
to edit the module itself.
Example (copied from sample.js)
const render = renderconst h = const Sandwich = var body = documentconst container = documentbody let isOpen = truelet color = 'blue' { }