React Virtual Scroller Component API

Virtual Scroller API

Rocket
New Year sale. Skyrocket your business in 2025!
Extra 25% off for all sale items + Free CoreUI Icons PRO with every order!
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.

Explore the API reference for the React Virtual Scroller component and discover how to effectively utilize its props for customization.

On this page

CVirtualScroller#

import { CVirtualScroller } from '@coreui/react-pro'
// or
import CVirtualScroller from '@coreui/react-pro/src/components/virtual-scroller/CVirtualScroller'
PropertyDefaultType
className#-string

A string of all className you want applied to the base component.

onScroll#-(currentItemIndex: number) => void

Event fires when the component has been scrolled.

visibleItems#-number

Amount of visible items