UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

9 lines 386 B
import { attachBoot } from '@ui5/webcomponents-base/dist/Boot.js'; import { addCustomCSS } from '@ui5/webcomponents-base/dist/Theming.js'; import { getUi5TagWithSuffix } from './utils.js'; export const addCustomCSSWithScoping = (baseTagName, customCSS) => { attachBoot(() => { const finalTag = getUi5TagWithSuffix(baseTagName); void addCustomCSS(finalTag, customCSS); }); };