react-property

    1.0.1 • Public • Published

    react-property

    NPM

    NPM version

    HTML and SVG DOM property configs used by React.

    Install

    # with npm 
    $ npm install react-property --save
     
    # with yarn 
    $ yarn add react-property

    Usage

    Import main module:

    // CommonJS
    const reactProperty = require('react-property');
     
    // ES Modules
    import reactProperty from 'react-property';

    Main module exports:

    {
      html: {
        autofocus: {
          attributeName: 'autofocus',
          propertyName: 'autoFocus',
          mustUseProperty: false,
          hasBooleanValue: true,
          hasNumericValue: false,
          hasPositiveNumericValue: false,
          hasOverloadedBooleanValue: false
        },
        // ...
      },
      svg: {
        // ...
      },
      properties: {
        // ...
      },
      isCustomAttribute: [Function: bound test]
    }

    You may also import what you need:

    const HTMLDOMPropertyConfig = require('react-property/lib/HTMLDOMPropertyConfig');
    const injection = require('react-property/lib/injection');

    Layout

    .
    ├── index.js
    └── lib
        ├── HTMLDOMPropertyConfig.js
        ├── SVGDOMPropertyConfig.js
        └── injection.js
    

    License

    MIT. See license from original project.

    Install

    npm i react-property

    DownloadsWeekly Downloads

    280,667

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    19.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar