1.0.1 • Published 6 years ago

bar-component v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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')
1.0.1

6 years ago

1.0.0

6 years ago