Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Dat UI elements [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]

License

Notifications You must be signed in to change notification settings

dat-ecosystem-archive/dat-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deprecated

More info on active projects and modules at dat-ecosystem.org


dat-elements

npm version build status downloads js-standard-style

Dat UI elements.

Usage

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)

API

loader = Loader()

Create a smooth, pulsating loader.

sprite = Sprite()

Create a new SVG sprite that must be loaded onto the DOM as the first child element. Allows the icon element to work.

icon = Icon(iconName, [options])

Create a new icon element, referencing an icon from the sprite.

Installation

$ npm install dat-elements

See Also

License

MIT

About

Dat UI elements [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •