Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with MantineJS #71

Closed
emilybuc opened this issue Jul 8, 2022 · 2 comments
Closed

Using with MantineJS #71

emilybuc opened this issue Jul 8, 2022 · 2 comments
Labels

Comments

@emilybuc
Copy link

emilybuc commented Jul 8, 2022

Hi!
I found your plugin for storybook and I think it looks perfect for what I'm building,
Only issue is that I'm using MantineJS for my styling and i dont seem to be able to get it to work.
Im unsure if it currently supports MantineJS?
Thank you

@usulpro
Copy link
Member

usulpro commented Jul 9, 2022

Hey @emilybuc

This addon should work fine with any library having a theme provider. To make it work you'd need to pass your custom providerFn function into withThemes(null, [theme], { providerFn });

This could look somehow like this:

import { MantineProvider } from '@mantine/core';

const providerFn = ({ theme, children }) => {
  return <MantineProvider theme={theme}>{children}</MantineProvider>;
};

Let me know if you still have any issues with it

@stale
Copy link

stale bot commented Nov 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 6, 2022
@stale stale bot closed this as completed Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants