Composables
Unstyled Components Icons API
Join Radar
Join Radar Unstyled Components Icons API UI Kit UI Blocks SVG to Compose Android Distribution Community Docs Blog Colors
Components
  • Button
  • Card
  • GlimmerTheme
  • Icon
  • IconButton
  • ListItem
  • Text
  • TitleChip
  • VerticalList
  • VerticalStack
Composable Functions
  • rememberListState
  • rememberStackState
  • surface
Modifiers
  • contentColorProvider
  • depthEffect
  • onIndirectPointerGesture
  • surface
Classes
  • ButtonSize
  • Colors
  • ComponentSpacingValues
  • DepthEffect
  • DepthEffectLevels
  • GlimmerTheme
  • IconSizes
  • ListScopeMarker
  • ListState
  • Shapes
  • StackState
  • SurfaceDepthEffect
  • Typography
Objects
  • ButtonDefaults
  • CardDefaults
  • ListItemDefaults
  • SurfaceDefaults
  • TitleChipDefaults
  • TypographyDefaults
  • VerticalListDefaults
Interfaces
  • LazyListItemInfo
  • ListItemScope
  • ListLayoutInfo
  • ListScope
  • StackItemScope
  • StackScope
Properties
  • LocalIconSize
  • LocalTextStyle
Functions
  • calculateContentColor
  • items
  • itemsIndexed
  • SnapLayoutInfoProvider
Jetpack Compose / XR Glimmer / Glimmer / Components / IconButton
Compose Component

IconButton

View Markdown Open in ChatGPT Open in Claude

IconButton is a component used for exposing supplementary actions with a single tap.

Compose Multiplatform

Compose Multiplatform

Ship iOS, desktop, and web apps with Compose

Ad Go Multiplatform
RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
API

Examples

IconButtonSample

@Composable
fun IconButtonSample() {
    IconButton(onClick = {}) { Icon(FavoriteIcon, "Localized description") }
}
Icon ← Previous ListItem Next →

Last updated: 2026-04-23

On this page

  • IconButtonSample

Never miss a Jetpack Compose release

Get an alert the moment a new Jetpack Compose release is out: new APIs, new components, new things to experiment with. Straight from Google's servers.

Join 3,000+ Jetpack Compose developers. No spam, ever.