@v142857/input-range

0.3.1 • Public • Published

Using

const InputRange = require('@v142857/input-range')
const input = InputRange({
    min: 0,
    max: 100, 
}, protocol) //these are the defaults
document.body.append(input)

function protocol (notify) {
    // notify here is the function you use to notify the sub component
    return listen
}
function listen (message) {
    // here you will receive messages from the sub component
    const { type, data } = message
}

Contributing

pnpm install
pnpm start 

Readme

Keywords

none

Package Sidebar

Install

npm i @v142857/input-range

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

6.26 kB

Total Files

6

Last publish

Collaborators

  • v142857