More info on active projects and modules at dat-ecosystem.org
Dat UI elements.
var Loader = require('dat-elements/loader')
var Sprite = require('dat-elements/sprite')
var Icon = require('dat-elements/icon')
// load the SVG sprite containing all icons onto the DOM
var sprite = Sprite()
document.body.appendChild(sprite)
// select an icon from the sprite!
var icon = Icon('happy-dat')
document.body.appendChild(icon)
// create a loader element
var loader = Loader()
document.body.appendChild(loader)
Create a smooth, pulsating loader.
Create a new SVG sprite that must be loaded onto the DOM as the first child element. Allows the icon element to work.
Create a new icon element, referencing an icon from the sprite.
$ npm install dat-elements