pub fn VirtualScrollView<T: Clone>(props: VirtualScrollViewProps<T>) -> Element
Expand description

VirtualScrollView component.

Props

See VirtualScrollViewProps.

Example

fn app() -> Element {
    rsx!(
        VirtualScrollView {
            show_scrollbar: true,
            length: 5,
            item_size: 80.0,
            builder_values: (),
            direction: "vertical",
            builder: Rc::new(move |(k, i, _)| {
                rsx! {
                    label {
                        key: "{k}",
                        height: "80",
                        "Number {i}"
                    }
                }
            })
        }
    )
}