Adding Scrollbars to Jetpack Compose

Update (February 25, 2026): The scroll indicator API described in this post was reverted in Compose Foundation 1.11.0-alpha06 . According to the changelog, the revert was because of API Council feedback, so we&rsquo;ll likely get a new version of the API before long. In the meantime, this article still applies to Foundation 1.11.0-alpha01 through alpha05, and the concepts might carry over when the…