UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

20 lines (19 loc) 952 B
import type { FC, ReactNode } from 'react'; export interface ThemeProviderPropTypes { children: ReactNode; /** * You can set this flag to true in case you have imported our static CSS Bundle/s in your application. * This will prevent the ThemeProvider from injecting the CSS during runtime again. * * * __main:__ `import '@ui5/webcomponents-react/styles.css'` * * __charts:__ `import '@ui5/webcomponents-react-charts/styles.css'` */ staticCssInjected?: boolean; } /** * In order to use `@ui5/webcomponents-react` you have to wrap your application's root component into the ThemeProvider. * * __Note:__ Per default, the `ThemeProvider` injects the CSS for the components during runtime. If you have imported our static CSS bundle/s in your application, you can set the prop `staticCssInjected` to `true` to prevent this. */ declare const ThemeProvider: FC<ThemeProviderPropTypes>; export { ThemeProvider };