Function freya::components::ScrollView
source · pub fn ScrollView<'a>(
cx: &'a Scoped<'a, ScrollViewProps<'a>>
) -> Option<VNode<'a>>
Expand description
ScrollView
component.
Props
See ScrollViewProps
.
Example
fn app(cx: Scope) -> Element {
render!(
ScrollView {
height: "300",
width: "100%",
show_scrollbar: true,
rect {
background: "blue",
height: "500",
width: "100%"
}
}
)
}