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.

Home Page:https://github.com/sm-react/storybook-addon-material-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Localization

Gustl22 opened this issue · comments

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 :)

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

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

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 :)