fusion-plugin-material-ui
This plugin will provide drop in support for "just works" server side rendering material-ui
components.
Table of contents
Installation
yarn add fusion-plugin-material-ui
Usage
// ButtonWrap.js;; <Button variant="contained" color="primary" > with bacon </Button>)
Setup
The Basic
// main.js;; ; { const app = root; // will use the default theme app; return app;};
Custom Theme
https://material-ui.com/customization/themes/
// main.js;; ;; { const app = root; app; app; return app;};
API
Registration API
MuiThemeProvider
;
Adds the MuiThemeProvider
from @material-ui/core
and handles server side rendering. Typically registered with MuiThemeProviderToken
MuiThemeProviderToken
;
Typicall registered with MuiThemeProvider
Dependencies
MuiThemeToken
;
Register with your own custom material-ui
theme.
Optional
JssToken
;
Register with your own custom jss
instance.
Optional
Advanced Usage
Custom JSS instance
This requires management of a custom jss
instance.
https://material-ui.com/customization/css-in-js/
// main.js;; ;; { const app = root; app; app; return app;};