pub fn VirtualScrollView<Builder: Clone + Fn(usize, &Option<BuilderArgs>) -> Element, BuilderArgs: Clone + PartialEq>(
    props: VirtualScrollViewProps<Builder, BuilderArgs>
) -> Element
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}"
                    }
                }
            }
        }
    )
}