ensemble is a tiny JavaScript library from loltgt, which can be used as starting point to create beautiful components.
ensemble is the foundation for ensemble.Modal, ensemble.Lightbox and ensemble.SocialShare
It is a JavaScript ES module with classes:
Compo
composition element, wrap aroundElement
[DOM]Flat
composition stack, wrap aroundDocumentFragment
[DOM]Data
wrapper for data, wrap aroundCompo
elementEvent
wrapper for events, wrap aroundEvent
[DOM]locale
class for locale and$locale
Proxypart
abstract forCompo
andFlat
base
abstract for ensemble components
ensemble is not gluey, it does not contain any kind of superstructure.
You can use ensemble with other libraries (examples in the misc folder).
To see in action ensemble components: Modal, Lightbox and SocialShare, look at the demo showcase on this page: https://loltgt.github.io/ensemble/demo/
View source from demo
pages to discover options and examples.
Using npm:
npm install --save-dev loltgt/ensemble