Skip to content

ScrollView

import { ScrollView } from "@material";
export component Example inherits Window {
width: 300px;
height: 200px;
background: transparent;
ScrollView {
width: 280px;
height: 180px;
}
}
slint

A ScrollView provides scrolling functionality for content that exceeds the available space, with optional scroll bars.

booldefault: true

Whether scrolling is enabled.

bool(in-out)default: false

Whether the scroll view has focus.

enum ScrollBarPolicydefault: the first enum value

The policy for showing the horizontal scroll bar.

enum ScrollBarPolicydefault: the first enum value

The policy for showing the vertical scroll bar.

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.

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.

length(in-out)default: 0px

The horizontal scroll position. This property was formerly known as viewport-x, which is still available as an alias.

length(in-out)default: 0px

The vertical scroll position. This property was formerly known as viewport-y, which is still available as an alias.

length(out)

The height of the visible area.

length(out)

The width of the visible area.

Invoked when the content is scrolled.


© 2026 SixtyFPS GmbH