# stacky-ui

![banner](img/banner.png)

![blazing-fast](https://img.shields.io/badge/%F0%9F%9A%80-Blazing%20Fast-orange.svg?longCache=true&style=for-the-badge&colorA=f4f4f4)
![under-8kb](https://img.shields.io/badge/Under%208kb-%F0%9F%A6%8B-blue.svg?longCache=true&style=for-the-badge&colorA=f4f4f4)

> A kind of UI

TODO: Fill out this long description.

## Table of Contents

* [Background](#background)
* [Install](#install)
* [Usage](#usage)
* [API](#api)
* [Maintainers](#maintainers)
* [Contribute](#contribute)
* [License](#license)

## Background

Here why this exists./

## Install

```
yarn add stacky-ui
```

## Usage

```jsx
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

[@albinotonnina](https://github.com/albinotonnina)

## Contribute

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2018 Albino Tonnina
