UNPKG

@ariakit/react

Version:

Toolkit for building accessible web apps with React

54 lines (46 loc) 973 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _LZ6L3ECGcjs = require('./LZ6L3ECG.cjs'); // ../ariakit-react-components/dist/role/role.js var TagName = "div"; var elements = [ "a", "button", "details", "dialog", "div", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "img", "input", "label", "li", "nav", "ol", "p", "section", "select", "span", "summary", "textarea", "ul", "svg" ]; var useRole = _LZ6L3ECGcjs.createHook.call(void 0, function useRole2(props) { return props; }); var Role = _LZ6L3ECGcjs.forwardRef.call(void 0, function Role2(props) { return _LZ6L3ECGcjs.createElement.call(void 0, TagName, props); }); Object.assign(Role, elements.reduce((acc, element) => { acc[element] = _LZ6L3ECGcjs.forwardRef.call(void 0, function Role3(props) { return _LZ6L3ECGcjs.createElement.call(void 0, element, props); }); return acc; }, {})); exports.Role = Role;