<script>
import { List } from "https://unpkg.com/svelte-virtual@next/dist/index.js";
let items = [...Array(100000).keys()];
</script>
<List itemCount={items.length} itemSize={60} height={40} layout="horizontal">
{#snippet item({ index, style })}
<div {style}>
{items[index]}
</div>
{/snippet}
</List>