Package Exports
- base-elements
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base-elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base-elements 
A selection of native DOM elements.
Usage
const Avatar = require('base-elements/avatar')
const html = require('bel')
const tree = html`<main>${Avatar()}</main>`
document.body.appendChild(tree)
API
avatar(opts, children)
Create a circular avatar image. opts
can contain:
- src: (default:
null
) set thesrc
tag of the element - size: (default:
3
) set the size of the element (uses.w1 ... .w5
) - class: (default:
null
) set additional classes on the element
See Also
Installation
$ npm install base-elements