{"library":"react-html-attributes","title":"React HTML Attributes Store","description":"react-html-attributes is a JavaScript utility library that provides a programmatic store of HTML and SVG attributes understood by React, organized by their respective element tags. It includes global attributes accessible via a special '*' key and lists of supported HTML and SVG tags under an 'elements' key. The current stable version is 1.4.6, with the last release occurring in April 2018. This package is no longer actively maintained, meaning its data regarding React-supported attributes and elements is significantly outdated relative to contemporary React versions. While it once offered a direct way to access these lists, modern React development typically relies on explicit JSX attributes and React's internal handling, often making this package's utility superseded for new projects. It differentiates itself by providing a structured, static data set, rather than dynamic introspection or attribute validation.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install react-html-attributes"],"cli":null},"imports":["const htmlElementAttributes = require('react-html-attributes');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const htmlElementAttributes = require('react-html-attributes');\n\n// Access global React-supported HTML attributes\nconsole.log('Global attributes:', htmlElementAttributes['*'].slice(0, 5));\n\n// Access SVG element tags supported by React\nconsole.log('SVG elements:', htmlElementAttributes['elements']['svg'].slice(0, 5));\n\n// Example: Get attributes for a specific tag (e.g., 'div')\n// Note: This library might not have keys for all specific tags if they only use global attributes.\n// To illustrate, we'll check if a common HTML tag exists or fall back to global.\nconst divAttributes = htmlElementAttributes['div'] || htmlElementAttributes['*'];\nconsole.log('Attributes for div (or global if not specific):', divAttributes.slice(0, 5));","lang":"javascript","description":"Demonstrates how to import the library using CommonJS and access the global HTML attributes and SVG element lists.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}