A categorized overview of the most commonly used Modifier extension functions across
Compose UI, Foundation, and Material 3.
fillMaxSize()fillMaxWidth()fillMaxHeight()wrapContentSize()wrapContentWidth()wrapContentHeight()size()width()height()sizeIn()widthIn()heightIn()requiredSize()requiredWidth()requiredHeight()aspectRatio()offset()absoluteOffset()padding()paddingFromBaseline()defaultMinSize()onPlaced()
align()alignBy()alignByBaseline()matchParentSize()
background()border()clip()clipToBounds()drawBehind()drawWithContent()alpha()graphicsLayer()paint()shadow()
clickable()combinedClickable()pointerInput()pointerInteropFilter()pointerHoverIcon()scrollable()draggable()transformable()onGloballyPositioned()onSizeChanged()
semantics()clearAndSetSemantics()contentDescription()focusable()focusRequester()focusProperties()focusTarget()
animateContentSize()
zIndex()testTag()debugInspectorInfo {}
verticalScroll()horizontalScroll()
clickable()combinedClickable()scrollable()draggable()swipeable()transformable()
selectable()toggleable()onFocusChanged()
basicMarquee()
indication()
blur()drawWithCache()magnifier()
background()border()
hoverable()ripple()
surface()surfaceColorAtElevation()
systemBarsPadding()statusBarsPadding()navigationBarsPadding()imePadding()
Text(
"Scrolling text example",
maxLines = 1,
softWrap = false,
overflow = TextOverflow.Visible,
modifier = Modifier
.width(160.dp)
.basicMarquee()
)