UNPKG

@mongodb-js/mongodb-ui-components

Version:

A collection of frequently used functional UI components found on mongodb properties

15 lines (10 loc) 293 B
'use strict'; module.exports = style; function style(name, content) { const id = `mongodb-ui-component-style-${name}`; if (document.getElementById(id)) return; const tag = document.createElement('style'); tag.id = id; tag.innerHTML = content; document.head.appendChild(tag); }