0.2.0 • Published 6 years ago
stacky-ui v0.2.0
stacky-ui
A kind of UI
TODO: Fill out this long description.
Table of Contents
Background
Here why this exists./
Install
yarn add stacky-ui
Usage
import {StackyWithState} from 'stacky-ui'
import {ComponentA, ComponentB} from 'components'
const renderFrame = ({id}) => {
const Frame = id === 'componentA' ? ComponentA : ComponentB
return <Frame />
}
const options = {
pages: [
{
id: 'componentA'
},
{
id: 'componentB'
}
],
activePage: 1,
renderFrame
}
const Layout = () => (
<div>
<Stacky {...options} />
</div>
)
API
Maintainers
Contribute
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2018 Albino Tonnina