react-property


HTML and SVG DOM property configs used by React.
Install
$ npm install react-property --save
$ yarn add react-property
Usage
Import main module:
const property = require('react-property');
import property from 'react-property';
Object output:
{
HTMLDOMPropertyConfig: {
autofocus: {
propertyName: "autoFocus",
hasBooleanValue: true,
hasOverloadedBooleanValue: false
},
},
SVGDOMPropertyConfig: {
accentheight: {
propertyName: 'accentHeight'
},
},
isCustomAttribute: [Function: bound test]
}
Instead of importing all of the property configs, you can also just import what you need:
const HTMLDOMPropertyConfig = require('react-property/lib/html');
const SVGAttributeToProperty = require('react-property/lib/svg/attribute-to-property');
const isCustomAttribute = require('react-property/lib/is-custom-attribute');
Layout
.
├── index.js
└── lib
├── html
│ ├── attribute-to-property.json
│ ├── attributes.json
│ ├── boolean-properties.json
│ ├── index.js
│ └── overloaded-boolean-properties.json
├── is-custom-attribute.js
└── svg
├── attribute-to-property.json
├── attributes.json
└── index.js
License
MIT. See license from original project.