bar-component
tiny loading bar component
Last updated 2 years ago by s3ththompson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bar-component 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |