0.6.0 • Published 3 years ago

@peajs/drawer v0.6.0

Weekly downloads
27
License
MIT
Repository
github
Last release
3 years ago

@peajs/drawer

Installation

npm i @peajs/drawer

Quick Start

import React from 'react'
import { Drawers, DrawerConfig, drawerStore } from '@peajs/drawer'

const About = () => (
  <span>
    about
    <button onClick={() => drawerStore.close('about')}>close</button>
  </span>
)

const config: DrawerConfig = [
  {
    name: 'about',
    component: About,
  },
]

export default () => (
  <div>
    <Drawers config={config} />
    <span>Hi, Dahlia</span>
    <button onClick={() => drawerStore.open('about')}>open</button>
  </div>
)

License

MIT License

0.6.0

3 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago