JSPM

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

A react supported html attributes store keyed by their tags

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

Build Status version

react-html-attributes

A store of React HTML attributes keyed by their respective tags. Global attributes and React specific attributes are under '*'. A HTML tag will map to all the html attributes supported by React. 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:

[
  "acceptCharset",
  "accessKey",
  "allowFullScreen",
  "allowTransparency",
  "autoComplete",
  "autoFocus",
  "autoPlay",
  "capture",
  "cellPadding",
  "cellSpacing",
  "charSet",
  "classID",
  "className",
  "colSpan",
  "contentEditable",
  "contextMenu",
  "crossOrigin",
  "dangerouslySetInnerHTML",
  "dateTime",
  "dir",
  "draggable",
  "encType",
  "formAction",
  "formEncType",
  "formMethod",
  "formNoValidate",
  "formTarget",
  "frameBorder",
  "hidden",
  "hrefLang",
  "htmlFor",
  "httpEquiv",
  "id",
  "inputMode",
  "is",
  "itemID",
  "itemProp",
  "itemRef",
  "itemScope",
  "itemType",
  "keyParams",
  "keyType",
  "lang",
  "marginHeight",
  "marginWidth",
  "maxLength",
  "mediaGroup",
  "minLength",
  "noValidate",
  "radioGroup",
  "readOnly",
  "role",
  "rowSpan",
  "scoped",
  "seamless",
  "spellCheck",
  "srcDoc",
  "srcLang",
  "srcSet",
  "style",
  "suppressContentEditableWarning",
  "tabIndex",
  "title",
  "useMap",
  "wmode"
]

Contributing

Commit by

npm run commit

License

MIT © Jacky Ho