Virtua
virtua
A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid, Svelte and Angular.
Headless UI
react
react-component
vue
solid
svelte
angular
ui
headless
list
grid
Stars
3.7k
Weekly
884k
Open issues
62
Bundle
~25 kB
Installation
npm install virtuaCode example
import { Button } from "virtua";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by inokawa
- 884k weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 62 open issues on GitHub