ui-unit
Interfaces
  • Density
  • FontScaling
Functions
  • Constraints
  • Density
  • DpOffset
  • DpSize
  • IntOffset
  • IntRect
  • IntSize
  • TextUnit
  • Velocity
  • coerceAtLeast
  • coerceAtMost
  • coerceIn
  • constrain
  • constrainHeight
  • constrainWidth
  • isSatisfiedBy
  • lerp
  • max
  • min
  • minus
  • offset
  • plus
  • round
  • roundToIntRect
  • roundToIntSize
  • takeOrElse
  • times
  • toIntRect
  • toIntSize
  • toOffset
  • toRect
  • toSize
Objects
  • ComposeUiUnitFlags
Classes
  • Constraints
  • Dp
  • DpOffset
  • DpRect
  • DpSize
  • ExperimentalUnitApi
  • IntOffset
  • IntRect
  • IntSize
  • LayoutDirection
  • LayoutDirection.Ltr
  • LayoutDirection.Rtl
  • TextUnit
  • TextUnitType
  • Velocity
Properties
  • center
  • dp
  • em
  • height
  • isFinite
  • isSpecified
  • isUnspecified
  • size
  • sp
  • width
Jetpack Compose / Compose UI / ui-unit / Properties / em
Property

em

View Markdown Open in ChatGPT Open in Claude

Creates an EM unit TextUnit

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

Ad Try CodeRabbit for Free
Source set: Common
public val Float.em: TextUnit

Creates an EM unit TextUnit

Source set: Common
public val Double.em: TextUnit

Creates an EM unit TextUnit

Source set: Common
public val Int.em: TextUnit

Creates an EM unit TextUnit

Content updated: 2026-10-21

dp ← Previous height Next →

On this page

Reach Android developers Put your product in front of engineers building Android and KMP apps. Sponsor Composables