odin-simple-mobile-menu/node_modules/lucide/dist/esm/createElement.js

25 lines
756 B
JavaScript
Raw Permalink Normal View History

2024-02-19 10:37:52 +00:00
/**
* @license lucide v0.331.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const createElement = (tag, attrs, children = []) => {
const element = document.createElementNS("http://www.w3.org/2000/svg", tag);
Object.keys(attrs).forEach((name) => {
element.setAttribute(name, String(attrs[name]));
});
if (children.length) {
children.forEach((child) => {
const childElement = createElement(...child);
element.appendChild(childElement);
});
}
return element;
};
var createElement$1 = ([tag, attrs, children]) => createElement(tag, attrs, children);
export { createElement$1 as default };
//# sourceMappingURL=createElement.js.map