embla

1.0.0 • Public • Published

NPM Version NPM Downloads Build Status Coverage Status

Metaframework

TODO: description

Installation

TODO: description

API

createEmble(Observer)

Observer

Observer (Function)

Arguments:

  • next (Function) - Function call when you need to update the state of children
    const embla = createEmble((next) => {
        setTimeout(() => next(1000), 1000)
    })

Embla

child (Function) - Adds a child who listens to the observer change.

Arguments:

  • manifest (Object|Function) - TODO:
  • isShow (Function) - Returns a boolean value for mounting or unmounting a child
  • extraArgument - Optional extras
    embla.child(
        {
            mount: () => {},
            unmount: () => {},
            default: () => {}
        },
        () => true,
        { staticValue: 'foo' }
    )

Thanks

Package Sidebar

Install

npm i embla

Weekly Downloads

55

Version

1.0.0

License

ISC

Unpacked Size

15.8 kB

Total Files

17

Last publish

Collaborators

  • mitka