Giter Site home page Giter Site logo

niikeec / virtual-grid Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 2.0 486 KB

Simplified virtualization using @tanstack/virtual.

Home Page: https://www.virtual-grid.com

License: MIT License

JavaScript 6.70% MDX 10.93% CSS 1.73% TypeScript 80.64%
grid react tanstack tanstack-virtual virtual

virtual-grid's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar niikeec avatar turbobot-temp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

virtual-grid's Issues

direction support

would you consider adding support for rtl mode in Grid?

I'd be happy to send a PR

How to attach to window scroll?

First of all, thanks for the amazing job done here, this lib is super helpful!

I have one question though, how do I attach the scroll to the window element? On @tanstack/react-virtual grid we can do that by using useWindowVirtualizer but I didn't find a way to achieve the same here, given that the scrollRef param is required too, I'm unsure how to achieve that. Is that possible?

Screen support

Thanks for the great library. I think there will need to be an option to support different screens. For example, for desktop computers there will be 5 columns, for tablets there will be 3 columns, for mobile devices there will be 2 columns.

Responsive grids

Hi, thanks for this great package. What is considered the appropriate way to implement responsive grid designs? I have experimented with dynamically changing the column number prop as the viewport changes size, but I'm not convinced in this approach. I would suspect this could be a common need and I'd like to know what the conventional wisdom is here? It doesn't appear feasible or correct to apply a grid wrapper with typical tailwind classes, for example, as the immediate child needs to be the grid items for virtualisation to work as intended.

Any help on achieving this would be greatly appreciated, I am attempting to extend the infinite scroll example with Tanstack Query, which is working, but I'm struggling with the markup. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.