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

Mui styled #763

Open
bsor-dev opened this issue Sep 15, 2023 · 1 comment
Open

Mui styled #763

bsor-dev opened this issue Sep 15, 2023 · 1 comment

Comments

@bsor-dev
Copy link

Is this possible to styled using mui? Can't make it work

styled(ReactImageGallery)(({}) => ({
    '& .image-gallery-thumbnail': {
      background: 'red !important',
    },
}));

@cjsewell
Copy link

cjsewell commented Oct 9, 2023

I was able to make styled with... I assume because react-image-gallery is not forwarding an html element ref.

However, I did get it working by wrapping it in a Box

<Box
    sx={(theme) => ({
        '& .image-gallery-thumbnail': {
            background: theme.palette.primary.main,
        },
    })}
>
    <ReactImageGallery thumbnailPosition="right" infinite={false} showPlayButton={false} lazyLoad={true} {...props} />
</Box>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants