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§
- Scrollable
Args - Scrollable
Args Builder - Builder for
ScrollableArgs
. - Scrollable
State - Holds the state for a
scrollable
component, managing scroll position and interaction.
Enums§
- Scroll
BarBehavior - Defines the behavior of the scrollbar visibility.
- Scroll
BarLayout - Defines the layout of the scrollbar relative to the scrollable content.
- Scrollable
Args Builder Error - Error type for ScrollableArgsBuilder
Functions§
- scrollable
- A container that makes its content scrollable when it exceeds the container’s size.