Virtualized List

Virtualized list that renders only the visible rows plus a small buffer, using a fixed item height and absolute positioning. Keeps thousands of React rows fast.

src/registry/ui/virtualized-list.tsx/r/virtualized-list.json

Installation#

bash
npx shadcn@latest add @minidev/virtualized-list

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/virtualized-list.json

Usage#

tsx
import { VirtualizedList } from "@/components/ui/virtualized-list"

export function Example() {
  return <VirtualizedList />
}

API reference#

VirtualizedList props
PropTypeDefault
countnumber10000
itemHeightnumber40
heightnumber320
renderItem(index: number) => React.ReactNodesampleRow
classNamestring-
All data table components

Learn more