Package Exports
- react-html-attributes
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 (react-html-attributes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-html-attributes
A store of html attributes keyed by their respective tags. Global attributes
are under '*'
. HTML tags that don't have any React-supported non-global
attributes won't have keys in the store.
Reference: https://facebook.github.io/react/docs/dom-elements.html
Installation
npm:
npm install react-html-attributes
Usage
var htmlElementAttributes = require('html-element-attributes');
htmlElementAttributes['*'];
Returns:
[
"className",
"dangerouslySetInnerHTML",
"dir",
"draggable",
"hidden",
"htmlFor",
"id",
"is",
"itemID",
"itemProp",
"itemRef",
"itemScope",
"itemType",
"lang",
"style",
"suppressContentEditableWarning",
"title"
]
License
MIT © Jacky Ho