pub fn VirtualScrollView<Builder, BuilderArgs>(
    props: VirtualScrollViewProps<Builder, BuilderArgs>
) -> Option<VNode>
where Builder: Clone + Fn(usize, &Option<BuilderArgs>) -> Option<VNode>, BuilderArgs: Clone + PartialEq,
Expand description

VirtualScrollView component.

§Props

See VirtualScrollViewProps.

§Example

fn app() -> Element {
    rsx!(
        VirtualScrollView {
            show_scrollbar: true,
            length: 5,
            item_size: 80.0,
            direction: "vertical",
            builder: move |i, _other_args: &Option<()>| {
                rsx! {
                    label {
                        key: "{i}",
                        height: "80",
                        "Number {i}"
                    }
                }
            }
        }
    )
}