We just launched Compose Examples featuring over 150+ components! Check it out →

Jetpack Compose library

Compose Foundation

"Compose Foundation" refers to the core building blocks of Jetpack Compose, providing essential utilities, layouts, and components for developing declarative UIs in Android applications. It forms the basis for creating dynamic and responsive user interfaces with simplicity and efficiency.

Installation

dependencies {
  implementation("androidx.compose.foundation:foundation:1.8.0-alpha04")
}

Components in Compose Foundation

Compose Foundation contains 21 Jetpack Compose components:

AndroidEmbeddedExternalSurface
AndroidExternalSurface
BasicSecureTextField
BasicText
BasicTextField
BasicTooltipBox
Canvas
ClickableText
DisableSelection
HorizontalPager
Image
LazyColumn
LazyHorizontalGrid
LazyHorizontalStaggeredGrid
LazyLayout
LazyLayoutPinnableItem
LazyRow
LazyVerticalGrid
LazyVerticalStaggeredGrid
SelectionContainer
VerticalPager

Modifiers in Compose Foundation

Compose Foundation contains 35 Jetpack Compose modifier(s):

by @alexstyl