Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

bar-component

1.0.1 • Public • Published

bar-component stability

npm version build status downloads js-standard-style

tiny loading bar component

Installation

$ npm install bar-component

Usage

// index.js
var choo = require('choo')
var html = require('choo/html')
var Bar = require('bar-component')
var bar = new Bar()
 
var app = choo()
 
app.use(require('bar-component/store')())
 
app.route('/', (state, emit) => {
  return html`<body>
    <h1>Hello</h1>
    ${bar.render(state.__progress)}
  </body>`
})
 
app.mount('body')

Keywords

none

Install

npm i bar-component

DownloadsWeekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar