Function freya_components::ScrollView
source · pub fn ScrollView<'a>(cx: Scope<'a, ScrollViewProps<'a>>) -> Element<'_>
Expand description
ScrollView
component.
Props
See ScrollViewProps
.
Example
fn app(cx: Scope) -> Element {
render!(
ScrollView {
theme: theme_with!(ScrollViewTheme {
width: "100%".into(),
height: "300".into(),
}),
show_scrollbar: true,
rect {
background: "blue",
height: "500",
width: "100%"
}
}
)
}