fwork-react-mui-theme-mode-provider
v0.1.12-1
Published
```bash npm i fwork-react-mui-theme-mode-provider ```
Downloads
8
Maintainers
Readme
Fwork React mui-theme-mode-provider
npm i fwork-react-mui-theme-mode-provider
// ...code
import { ThemeModeProvider } from 'fwork-react-mui-theme-mode-provider';
function App() {
return (
// ...code
<ThemeModeProvider>
<div>My App</div>
</ThemeModeProvider>
// code...
);
}
// code...
// ...code
import {
ThemeModeProvider,
ThemeModeToggleComponent
} from 'fwork-react-mui-theme-mode-provider';
function MyComponent() {
return <div>
<label>My Component</label>
<ThemeModeToggleComponent />
</div>
}
function App() {
return (
// ...code
<ThemeModeProvider>
<MyComponent />
</ThemeModeProvider>
// code...
);
}
// code...