Module scrollable

Source
Expand description

Scrollable container component for Tessera UI.

This module provides a scrollable container that enables vertical and/or horizontal scrolling for overflowing content within a UI layout. It is designed as a fundamental building block for creating areas where content may exceed the visible bounds, such as lists, panels, or custom scroll regions.

Features include configurable scroll directions, smooth animated scrolling, and stateful management of scroll position and focus. The scrollable area is highly customizable via ScrollableArgs, and integrates with the Tessera UI state management system.

Typical use cases include scrollable lists, text areas, image galleries, or any UI region where content may not fit within the allocated space.

§Example

See scrollable() for usage details and code samples.

Structs§

ScrollableArgs
ScrollableArgsBuilder
Builder for ScrollableArgs.
ScrollableState
Holds the state for a scrollable component, managing scroll position and interaction.

Enums§

ScrollBarBehavior
Defines the behavior of the scrollbar visibility.
ScrollBarLayout
Defines the layout of the scrollbar relative to the scrollable content.
ScrollableArgsBuilderError
Error type for ScrollableArgsBuilder

Functions§

scrollable
A container that makes its content scrollable when it exceeds the container’s size.