JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q27735F
  • License MIT

A selection of native DOM elements

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 stability

npm version build status test coverage downloads js-standard-style

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 the src 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

License

MIT