{"id":13541067,"url":"https://github.com/dat-ecosystem-archive/dat-elements","last_synced_at":"2025-04-02T08:30:56.221Z","repository":{"id":66116889,"uuid":"71778012","full_name":"dat-ecosystem-archive/dat-elements","owner":"dat-ecosystem-archive","description":"Dat UI elements [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ] ","archived":true,"fork":false,"pushed_at":"2022-01-06T16:22:34.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-05-16T13:18:48.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dat-ecosystem-archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-24T10:27:52.000Z","updated_at":"2024-07-25T09:12:47.892Z","dependencies_parsed_at":"2023-02-20T19:45:23.477Z","dependency_job_id":null,"html_url":"https://github.com/dat-ecosystem-archive/dat-elements","commit_stats":null,"previous_names":["datproject/dat-elements"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dat-ecosystem-archive","download_url":"https://codeload.github.com/dat-ecosystem-archive/dat-elements/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781917,"owners_count":20832933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:00:38.025Z","updated_at":"2025-04-02T08:30:55.956Z","avatar_url":"https://github.com/dat-ecosystem-archive.png","language":"JavaScript","readme":"[![deprecated](http://badges.github.io/stability-badges/dist/deprecated.svg)](https://dat-ecosystem.org/) \n\nMore info on active projects and modules at [dat-ecosystem.org](https://dat-ecosystem.org/) \u003cimg src=\"https://i.imgur.com/qZWlO1y.jpg\" width=\"30\" height=\"30\" /\u003e \n\n---\n\n# dat-elements\n[![npm version][2]][3] [![build status][4]][5]\n[![downloads][8]][9] [![js-standard-style][10]][11]\n\nDat UI elements.\n\n## Usage\n```js\nvar Loader = require('dat-elements/loader')\nvar Sprite = require('dat-elements/sprite')\nvar Icon = require('dat-elements/icon')\n\n// load the SVG sprite containing all icons onto the DOM\nvar sprite = Sprite()\ndocument.body.appendChild(sprite)\n\n// select an icon from the sprite!\nvar icon = Icon('happy-dat')\ndocument.body.appendChild(icon)\n\n// create a loader element\nvar loader = Loader()\ndocument.body.appendChild(loader)\n```\n\n## API\n### `loader = Loader()`\nCreate a smooth, pulsating loader.\n\n### `sprite = Sprite()`\nCreate a new SVG sprite that must be loaded onto the DOM as the first child\nelement. Allows the icon element to work.\n\n### `icon = Icon(iconName, [options])`\nCreate a new icon element, referencing an icon from the sprite.\n\n## Installation\n```sh\n$ npm install dat-elements\n```\n\n## See Also\n- [dat-icons](https://github.com/Kriesse/dat-icons)\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square\n[1]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[2]: https://img.shields.io/npm/v/dat-elements.svg?style=flat-square\n[3]: https://npmjs.org/package/dat-elements\n[4]: https://img.shields.io/travis/datproject/dat-elements/master.svg?style=flat-square\n[5]: https://travis-ci.org/datproject/dat-elements\n[6]: https://img.shields.io/codecov/c/github/datproject/dat-elements/master.svg?style=flat-square\n[7]: https://codecov.io/github/datproject/dat-elements\n[8]: http://img.shields.io/npm/dm/dat-elements.svg?style=flat-square\n[9]: https://npmjs.org/package/dat-elements\n[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[11]: https://github.com/feross/standard\n","funding_links":[],"categories":["Dat Project Organization Stuff"],"sub_categories":["Other Related Dat Project Modules"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdat-ecosystem-archive%2Fdat-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdat-ecosystem-archive%2Fdat-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdat-ecosystem-archive%2Fdat-elements/lists"}