/** * @jsxImportSource solid-js */ import { JSX } from "solid-js"; import { ViewportComponentAttributes } from "./types"; import { Virtualizer, VirtualizerHandle, VirtualizerProps, } from "./Virtualizer"; /** * Methods of {@link VList}. */ export interface VListHandle extends VirtualizerHandle {} /** * Props of {@link VList}. */ export interface VListProps extends Pick< VirtualizerProps, | "ref" | "data" | "children" | "overscan" | "itemSize" | "shift" | "horizontal" | "onScroll" | "onScrollEnd" >, ViewportComponentAttributes {} /** * Virtualized list component. See {@link VListProps} and {@link VListHandle}. */ export const VList = (props: VListProps): JSX.Element => { const { ref, data, children, overscan, itemSize, shift, horizontal, onScroll, onScrollEnd, style, ...attrs } = props; return (
{props.children}
); };