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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i bar-component

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • s3ththompson