react-theming / storybook-addon-material-ui

Addon for storybook wich wrap material-ui components into MuiThemeProvider. :page_with_curl: This helps and simplifies development of material-ui based components.
https://github.com/sm-react/storybook-addon-material-ui
MIT License
567 stars 131 forks source link

Localization #126

Open Gustl22 opened 3 years ago

Gustl22 commented 3 years ago

If using localization, themes must be combined with Locale: https://material-ui.com/guides/localization/

Can you provide a method, which takes a Theme Object (e.g. created by createMuiTheme) instead of the raw Palette. Thx :)

usulpro commented 3 years ago

We can't pass it between panel and stories because it's not serializable. What if we provide ability to specify localisation additionally

usulpro commented 3 years ago

Additionally you can have a look at https://github.com/react-theming/storybook-addon addon. It gives you more flexibility on creating providers

Gustl22 commented 3 years ago

I understand. If you want you can provide an extra param for the locale. But using the other provided lib worked just fine, thank you! Can be closed, or kept open for possible implementation :)