Function freya::prelude::ScrollView

source ·
pub fn ScrollView(props: ScrollViewProps) -> Option<VNode>
Expand description

Scrollable area with bidirectional support and scrollbars.

§Example

fn app() -> Element {
    rsx!(
        ScrollView {
             theme: theme_with!(ScrollViewTheme {
                width: "100%".into(),
                height: "300".into(),
             }),
             show_scrollbar: true,
             rect {
                background: "blue",
                height: "500",
                width: "100%"
             }
        }
    )
}