by @alexstyl
✉️ Leave your feedback

← View all Jetpack Compose Libraries

Jetpack Compose Foundation library

We extracted all components and modifiers in the Foundation library in one place. Find the Jetpack Compose Foundation dependency and add it to your project.

Foundation dependency

Add the Jetpack Compose Foundation library to your project by adding the following dependency to your build.gradle file:

dependencies {
    implementation "androidx.compose.foundation:foundation:1.6.0-alpha08"
}

Components in Foundation

BaseTextField

BasicTextField

Box

CoreText

DisableSelection

HorizontalScroller

LazyColumn

LazyColumnItems

LazyLayoutItemProvider

LazyRowFor

LazyVerticalGrid

ScrollableColumn

SelectionContainer

Text

ZoomableState

BasicSecureTextField

BasicTextField2

Canvas

CoreTextField

DrawBorder

Icon

LazyColumnFor

LazyHorizontalStaggeredGrid

LazyLayoutPinnableItem

LazyRowForIndexed

LazyVerticalStaggeredGrid

ScrollableRow

SelectionHandle

TextField

BasicText

BasicTooltipBox

ClickableText

Dialog

HorizontalPager

Image

LazyColumnForIndexed

LazyLayout

LazyRow

LazyRowItems

ProvideTextStyle

ScrollerPosition

SimpleLayout

VerticalPager

Modifiers in Foundation