You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to use the styled component library to style the Gallery but seem it's not working due to className of Gallery is not passed to the Portal
Describe the solution you'd like
I would like the Gallery to accept className as props and pass to the created Portal
Describe alternatives you've considered
I can style the component using global CSS.
The text was updated successfully, but these errors were encountered:
Hi! The Gallery component doesn't render any DOM elements. It's just a context provider.
Photoswipe right before init appends its own elements to the body (by default). It can be controlled with appendToEl option, which you can pass using <Gallery options={{ appendToEl: yourElementRef.current }} /> prop.
Is your feature request related to a problem? Please describe.
I want to use the styled component library to style the
Gallery
but seem it's not working due toclassName
of Gallery is not passed to thePortal
Describe the solution you'd like
I would like the
Gallery
to acceptclassName
as props and pass to the createdPortal
Describe alternatives you've considered
I can style the component using global CSS.
The text was updated successfully, but these errors were encountered: