Comments (9)
Absolutely. This needs some planning, but is something that's been on my mind for a while
from react-images.
Flickr also implements this in context of a lightbox instead of gallery :
https://www.flickr.com/photos/neptunian/28167115654/in/photostream/
from react-images.
That's a nice implementation, I like the subtle drop shadow when the thumbnails are enlarged. Also, great shot π
from react-images.
Quick and basic test : http://tamago.fr/react-images/
Scrolls (not automatically yet) when there are too many thumbnails, uses "thumbnail" instead of "src" if given. Added onClickThumbnail (like onClickPrev/Next).
Could be easily changed to a "paginated" version like Flickr.
from react-images.
Dude, that's awesome! Looking forward to the PR
from react-images.
Just updated the version to also a second Thumbnails components : PaginatedThumbnails
In my current fork the thumbnails component can be passed to Lightbox, so you can write stuff like
<Lightbox
images={...}
thumbnails={PaginatedThumbnails} />
If you need to pass some props to the thumbnail component, you can do it like this (not very intuitive)
<Lightbox
images={...}
thumbnails={(props) => <PaginatedThumbnails {...props} offset={5} />} />
The code for this one is more complicated as it has some internal state to manage the "current page".
I guess I can do a PR, but it probably needs some discussion to see what API suits you best.
from react-images.
@jossmac do you have a gitter for this project ? I'll be doing some open source image components for my company and wanted to see if it's something that could be added to react-images or should be a separate project.
from react-images.
Just created https://gitter.im/react-images/Lobby
Yeah that'd be great. Just let me know what you're building and hopefully it can find its way back into this repo for the community π
from react-images.
+1
from react-images.
Related Issues (20)
- showNavigationOnTouchDevice is not part of the type for CarouselProps HOT 2
- Style Autoprefixer broken for `display: flex`
- TypeError: undefined is not an object (evaluating 'currentView.caption') HOT 1
- Option to always show header and footer. HOT 1
- Warning using ModalGateway in react's Strict Mode HOT 2
- Is there a way to disable some/all the shortcuts ? HOT 1
- Component Customization with Styled-Components Library HOT 5
- Picture title HOT 4
- NPM Audit Security report HOT 3
- ζ³ζ·»ε δΈδΈͺζ₯ηι’θ§εΎζΆοΌε―ζ转ηεθ½
- React 17 support HOT 6
- FATAL: 1.1.7 to 1.2.0-beta.6 breaks fullscreen mode ('active' of undefined) HOT 7
- is there a way we can disable scrolling for the carousel
- Demo error HOT 4
- In search of a replacement β HOT 2
- Can I get the images data from a json file and how? Thanks HOT 1
- Can you add an option for adding hyperlink(s) under the photo? HOT 1
- A vulnerability introduced in react-images HOT 2
- Can it view .tif or .tiff type image ? HOT 1
- Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-images.