ScrollView
import { ScrollView } from "@material";export component Example inherits Window { width: 300px; height: 200px; background: transparent; ScrollView { width: 280px; height: 180px; }}A ScrollView provides scrolling functionality for content that exceeds the available space, with optional scroll bars.
Properties
Section titled “Properties”enabled
Section titled “enabled”booldefault: true
Whether scrolling is enabled.
has-focus
Section titled “has-focus”bool(in-out)default: false
Whether the scroll view has focus.
horizontal-scrollbar-policy
Section titled “horizontal-scrollbar-policy”enum ScrollBarPolicydefault: the first enum value
The policy for showing the horizontal scroll bar.
vertical-scrollbar-policy
Section titled “vertical-scrollbar-policy”enum ScrollBarPolicydefault: the first enum value
The policy for showing the vertical scroll bar.
content-height
Section titled “content-height”length(in-out)default: 0px
The total height of the scrollable content.
This property was formerly known as viewport-height, which is still available as an alias.
content-width
Section titled “content-width”length(in-out)default: 0px
The total width of the scrollable content.
This property was formerly known as viewport-width, which is still available as an alias.
content-x
Section titled “content-x”length(in-out)default: 0px
The horizontal scroll position.
This property was formerly known as viewport-x, which is still available as an alias.
content-y
Section titled “content-y”length(in-out)default: 0px
The vertical scroll position.
This property was formerly known as viewport-y, which is still available as an alias.
visible-height
Section titled “visible-height”length(out)
The height of the visible area.
visible-width
Section titled “visible-width”length(out)
The width of the visible area.
Callbacks
Section titled “Callbacks”scrolled()
Section titled “scrolled()”Invoked when the content is scrolled.
© 2026 SixtyFPS GmbH