Skip to main content

ScrollContainer

ScrollContainer is a lower-level scroll surface with direct scroll step, animation, and scrollbar styling controls. Use ScrollView for most app layouts; use ScrollContainer when you need finer control over scrolling and scrollbar rendering.

Key Fields

  • scrollStep: amount moved per input step.
  • scrollDuration: default animation duration.
  • scrollbarBackgroundUri, scrollbarBackgroundWidth, and related offset fields.
  • scrollbarUri, scrollbarWidth, scrollbarFocusColor, and scrollbarUnfocusColor.
  • maxScrollBarHeight: optional scrollbar height cap.

Notes

ScrollContainer handles directional input and animated position changes itself. Prefer ScrollView unless the design requires custom scrollbar behavior or lower-level scroll control.