@moser-inc/moser-labs-react 1.17.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,6 +10,35 @@ npm i primereact @moser-inc/moser-labs-react
10
10
 
11
11
  ## Usage
12
12
 
13
+ ### Setup
14
+
15
+ Wrap your application with the `LabsProvider` component to provide the app name, theme and favicon urls, and other potential configuration:
16
+
17
+ ```tsx
18
+ // App.tsx
19
+ import { LabsProvider } from '@moser-inc/moser-labs-react';
20
+
21
+ const FAVICONS = {
22
+ dark: 'favicon-dark.svg',
23
+ light: 'favicon-light.svg',
24
+ };
25
+
26
+ const THEMES = {
27
+ dark: 'theme-dark.css',
28
+ light: 'theme-light.css',
29
+ };
30
+
31
+ const App = () => {
32
+ return (
33
+ <LabsProvider appName="My App" favicons={FAVICONS} themes={THEMES}>
34
+ {/* Your app components */}
35
+ </LabsProvider>
36
+ );
37
+ };
38
+ ```
39
+
40
+ ### Styles
41
+
13
42
  Either load all component styles in your entry point, which may include unused styles:
14
43
 
15
44
  ```tsx