We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi I am having trouble adding custom description with the react-photo-view I can't see a sample having the same result
The text was updated successfully, but these errors were encountered:
Can you describe it in detail
Sorry, something went wrong.
why there is no example explaining how to add custom description. I want to implement custom description but cannot find any example.
Use the overlayRender attribute in PhotoProvider, but also you need to style the output as an overlay. Here is an example using tailwind.css classes:
<PhotoProvider overlayRender={ ({ images, index }) => { const className = ` absolute left-0 bottom-0 p-2 w-full min-h-24 text-xs text-slate-300 z-50 bg-black/50 `; return ( <div className={className}> { "custom description" } </div> ); }} > ...
No branches or pull requests
Hi I am having trouble adding custom description with the react-photo-view
I can't see a sample having the same result
The text was updated successfully, but these errors were encountered: