Closed erandow closed 2 years ago
This is an internal property passed for the end-to-end tests. Declaring your own type for the components, while possible, is not necessary. The library exposes the types:
import { Components, GridComponents, TableComponents } from "react-virtuoso";
type YourListType = GridComponents['List']
This is documented here: https://virtuoso.dev/customize-structure/#typescript-interfaces.
P.S. Don't open duplicate discussions and issues for questions like this. This is documented and trivial to figure out from the source code.
Hello everybody, I am using the
VirtuosoGrid
component and tried to pass aList
component as its components prop to it. I get the following error:I don't know what is this
data-test-id
here. do you know what is this for?Originally posted by @ErfanAsadi in https://github.com/petyosi/react-virtuoso/discussions/691