Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A high-performance React application showcasing TanStack Virtual for efficient rendering of large datasets. Features both list and grid virtualization with dynamic item sizing, search filtering, sorting, and responsive layout. Built with React, TypeScript, Vite, and TailwindCSS.

License

Notifications You must be signed in to change notification settings

vishkx/tanstack-virtualizer-demo

Open more actions menu

Repository files navigation

TanStack Virtualizer Demo

TanStack Virtual Logo

A high-performance React application showcasing TanStack Virtual for efficient rendering of large datasets.

FeaturesDemoInstallationUsageTechnologiesProject StructureContributingLicense

✨ Features

  • Virtualized List View - Efficiently render thousands of items with minimal DOM nodes
  • Virtualized Grid View - Responsive grid layout with dynamic column count
  • Dynamic Item Sizing - Automatically adjusts to content height
  • Expandable Items - Expand/collapse items for additional details
  • Search Functionality - Filter items by title or description
  • Sorting - Sort items alphabetically (ascending/descending)
  • Performance Controls - Adjust item count, overscan, and item height
  • Responsive Design - Works on all device sizes
  • Beautiful UI - Modern, clean interface with Tailwind CSS

🎮 Demo

TanStack Virtualizer Demo Screenshot

📦 Installation

# Clone the repository
git clone https://github.com/vishal-katta/tanstack-virtualizer-demo.git

# Navigate to the project directory
cd tanstack-virtualizer-demo

# Install dependencies
npm install

# Start the development server
npm run dev

🚀 Usage

The demo will be running at http://localhost:5173

You can:

  • Toggle between list and grid views
  • Search for specific items
  • Sort items alphabetically
  • Expand grid items for additional information
  • Adjust performance settings via the Controls panel

💻 Technologies

📂 Project Structure

tanstack-virtualizer-demo/
├── public/              # Static assets
│   ├── images/          # Image assets
│   │   └── demo-screenshot.svg   # Demo screenshot
│   ├── favicon.svg      # Site favicon
│   ├── manifest.json    # Web app manifest
│   └── robots.txt       # Search engine instructions
├── src/
│   ├── components/      # React components
│   │   ├── Controls.tsx          # Performance control panel
│   │   ├── Layout.tsx            # Main layout component
│   │   ├── VirtualDemo.tsx       # Main demo component
│   │   ├── VirtualGrid.tsx       # Grid view implementation
│   │   └── VirtualItem.tsx       # Individual list item component
│   ├── utils/
│   │   ├── data.ts               # Data generation utilities
│   │   └── faker.ts              # Fake data generation
│   ├── App.tsx          # Main application component
│   ├── main.tsx         # Application entry point
│   └── index.css        # Global styles
├── index.html           # HTML entry point
├── tsconfig.json        # TypeScript configuration
├── vite.config.ts       # Vite configuration
└── package.json         # Project dependencies

👥 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by Vishal Katta

About

A high-performance React application showcasing TanStack Virtual for efficient rendering of large datasets. Features both list and grid virtualization with dynamic item sizing, search filtering, sorting, and responsive layout. Built with React, TypeScript, Vite, and TailwindCSS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.