# StyleScope

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/StyleScope.kt+class:androidx.compose.foundation.style.StyleScope) Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.11.0) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  interface StyleScope : CustomStyleScope, StyleStateScope, AnimateStyleScope, LayoutStyleScope, LayerStyleScope, DrawStyleScope, TextStyleStyleScope
  ```

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` is the receiver scope of a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` lambda. It allows defining the properties of a style that will be used by a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/styleable.modifier#(androidx.compose.ui.Modifier).styleable(androidx.compose.foundation.style.StyleState,androidx.compose.foundation.style.Style)` modifier to allow customizing the look of a composable component in its default state and in states like hover, pressed, or focused readable from the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateScope#state(androidx.compose.foundation.style.StyleStateKey,kotlin.Function0,kotlin.Function2)` property.

The properties set on a style scope affect the styled region of a component. A component creates a styled region by using the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/styleable.modifier#(androidx.compose.ui.Modifier).styleable(androidx.compose.foundation.style.StyleState,androidx.compose.foundation.style.Style)` modifier.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` |   |

## Summary

| ### Inherited functions |
|---|
| From [androidx.compose.foundation.style.AlphaScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AlphaScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AlphaScope#alpha(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the opacity of the component. | Cmn | |
| From [androidx.compose.foundation.style.AnimateStyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AnimateStyleScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AnimateStyleScope#animate(androidx.compose.animation.core.AnimationSpec,androidx.compose.animation.core.AnimationSpec,kotlin.Function0)( toSpec: https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>, fromSpec: https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>, block: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Specifies a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` whose properties will be animated to when they change, using the provided `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec`. | Cmn | |
| From [androidx.compose.foundation.style.BackgroundScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope#background(androidx.compose.ui.graphics.Color)(color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Sets the background color of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope#background(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)` Sets the background of the component using a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush`. | Cmn | |
| From [androidx.compose.foundation.style.BaselineShiftScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BaselineShiftScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BaselineShiftScope#baselineShift(androidx.compose.ui.text.style.BaselineShift)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/BaselineShift)` Sets the baseline shift for the text (e.g., for superscript or subscript). | Cmn | |
| From [androidx.compose.foundation.style.BorderScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope#borderBrush(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)` Sets the brush used to paint the border around the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope#borderColor(androidx.compose.ui.graphics.Color)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Sets the color of the border around the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope#borderWidth(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the width of the border around the component. | Cmn | |
| From [androidx.compose.foundation.style.ClipScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ClipScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ClipScope#clip(kotlin.Boolean)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Clips the component to its bounds. | Cmn | |
| From [androidx.compose.foundation.style.ColorFilterScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ColorFilterScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ColorFilterScope#colorFilter(androidx.compose.ui.graphics.ColorFilter)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter?)` Sets the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` to apply to the component. | Cmn | |
| From [androidx.compose.foundation.style.ContentColorScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentColorScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentColorScope#contentBrush(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)` Sets the preferred brush for rendering content, primarily affecting text. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentColorScope#contentColor(androidx.compose.ui.graphics.Color)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Sets the preferred content color, primarily affecting text color. | Cmn | |
| From [androidx.compose.foundation.style.ContentPaddingScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentPaddingScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentPaddingScope#contentPaddingBottom(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the padding for the bottom edge of the component's content. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentPaddingScope#contentPaddingEnd(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the padding for the end edge of the component's content. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentPaddingScope#contentPaddingStart(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the padding for the start edge of the component's content. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ContentPaddingScope#contentPaddingTop(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the padding for the top edge of the component's content. | Cmn | |
| From [androidx.compose.ui.unit.Density](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density) |---|---|---| | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.Dp).roundToPx()()` Convert `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` by rounding | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.TextUnit).roundToPx()()` Convert Sp to `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` by rounding | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(kotlin.Int).toDp()()` Convert an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` pixel value to `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(kotlin.Float).toDp()()` Convert a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` pixel value to a Dp | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.geometry.Size).toDpSize()()` Convert a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize`. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.Dp).toPx()()` Convert `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to pixels. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.TextUnit).toPx()()` Convert Sp to pixels. | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.DpRect).toRect()()` Convert a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpRect` to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`. | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.DpSize).toSize()()` Convert a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size`. | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(kotlin.Int).toSp()()` Convert an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` pixel value to Sp. | Cmn | | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(kotlin.Float).toSp()()` Convert a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` pixel value to a Sp | Cmn | |
| From [androidx.compose.foundation.style.ExternalPaddingScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExternalPaddingScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExternalPaddingScope#externalPaddingBottom(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the external padding for the bottom edge of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExternalPaddingScope#externalPaddingEnd(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the external padding for the end edge of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExternalPaddingScope#externalPaddingStart(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the external padding for the start edge of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExternalPaddingScope#externalPaddingTop(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the external padding for the top edge of the component. | Cmn | |
| From [androidx.compose.foundation.style.FontFamilyScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontFamilyScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontFamilyScope#fontFamily(androidx.compose.ui.text.font.FontFamily)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily)` Sets the font family for the text. | Cmn | |
| From [androidx.compose.ui.unit.FontScaling](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/FontScaling) |---|---|---| | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/FontScaling#(androidx.compose.ui.unit.TextUnit).toDp()()` Convert Sp to `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn | | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/FontScaling#(androidx.compose.ui.unit.Dp).toSp()()` Convert `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to Sp. | Cmn | |
| From [androidx.compose.foundation.style.FontSizeScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontSizeScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontSizeScope#fontSize(androidx.compose.ui.unit.TextUnit)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit)` Sets the font size for the text. | Cmn | |
| From [androidx.compose.foundation.style.FontStyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontStyleScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontStyleScope#fontStyle(androidx.compose.ui.text.font.FontStyle)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontStyle)` Sets the font style for the text (e.g., italic, normal). | Cmn | |
| From [androidx.compose.foundation.style.FontSynthesisScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontSynthesisScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontSynthesisScope#fontSynthesis(androidx.compose.ui.text.font.FontSynthesis)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontSynthesis)` Sets the font synthesis strategy, determining if and how bold/italic styles are synthesized when the font family does not natively support them. | Cmn | |
| From [androidx.compose.foundation.style.FontWeightScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontWeightScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/FontWeightScope#fontWeight(androidx.compose.ui.text.font.FontWeight)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight)` Sets the font weight for the text (e.g., bold, normal). | Cmn | |
| From [androidx.compose.foundation.style.ForegroundScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope#foreground(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)` Sets the foreground brush for the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope#foreground(androidx.compose.ui.graphics.Color)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Sets the foreground color for the component. | Cmn | |
| From [androidx.compose.foundation.style.HyphensScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/HyphensScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/HyphensScope#hyphens(androidx.compose.ui.text.style.Hyphens)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/Hyphens)` Sets the hyphenation strategy for text. | Cmn | |
| From [androidx.compose.foundation.style.LetterSpacingScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/LetterSpacingScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/LetterSpacingScope#letterSpacing(androidx.compose.ui.unit.TextUnit)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit)` Sets the letter spacing for the text. | Cmn | |
| From [androidx.compose.foundation.style.LineBreakScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/LineBreakScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/LineBreakScope#lineBreak(androidx.compose.ui.text.style.LineBreak)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak)` Sets the line breaking strategy for text. | Cmn | |
| From [androidx.compose.foundation.style.LineHeightScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/LineHeightScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/LineHeightScope#lineHeight(androidx.compose.ui.unit.TextUnit)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit)` Sets the line height for the text. | Cmn | |
| From [androidx.compose.foundation.style.MaxSizeScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/MaxSizeScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/MaxSizeScope#maxHeight(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Constrains the maximum height of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/MaxSizeScope#maxWidth(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Constrains the maximum width of the component. | Cmn | |
| From [androidx.compose.foundation.style.MinSizeScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/MinSizeScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/MinSizeScope#minHeight(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Constrains the minimum height of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/MinSizeScope#minWidth(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Constrains the minimum width of the component. | Cmn | |
| From [androidx.compose.foundation.style.PositionScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PositionScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PositionScope#bottom(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Offsets the component vertically from its original calculated bottom position. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PositionScope#left(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Offsets the component horizontally from its original calculated left position. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PositionScope#right(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Offsets the component horizontally from its original calculated right position. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PositionScope#top(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Offsets the component vertically from its original calculated top position. | Cmn | |
| From [androidx.compose.foundation.style.RotationScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope#rotationX(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Rotates the component around the X-axis through its center. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope#rotationY(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Rotates the component around the Y-axis through its center. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope#rotationZ(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Rotates the component around the Z-axis (perpendicular to the screen) through its center. | Cmn | |
| From [androidx.compose.foundation.style.ScaleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ScaleScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ScaleScope#scaleX(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Scales the component horizontally around its center pivot point. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ScaleScope#scaleY(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Scales the component vertically around its center pivot point. | Cmn | |
| From [androidx.compose.foundation.style.ShadowScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(androidx.compose.ui.graphics.shadow.Shadow)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies a drop shadow effect directly to the component, often used for text or specific graphics. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(kotlin.Array)(vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies one or more drop shadow effects directly to the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(androidx.compose.ui.graphics.shadow.Shadow)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies an inner shadow effect to the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(kotlin.Array)(vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies one or more inner shadow effects to the component. | Cmn | |
| From [androidx.compose.foundation.style.ShapeScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShapeScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShapeScope#shape(androidx.compose.ui.graphics.Shape)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape)` Sets the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` for the component. | Cmn | |
| From [androidx.compose.foundation.style.SizeScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/SizeScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/SizeScope#height(kotlin.Float)(fraction: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the height of the component to a fraction of the parent's available height. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/SizeScope#height(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the preferred height of the component. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/SizeScope#width(kotlin.Float)(fraction: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the width of the component to a fraction of the parent's available width. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/SizeScope#width(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the preferred width of the component. | Cmn | |
| From [androidx.compose.foundation.style.StyleStateScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateScope#state(androidx.compose.foundation.style.StyleStateKey,kotlin.Function0,kotlin.Function2)( key: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateKey<T>, block: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, active: (key: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateKey<T>, state: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleState) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` A helper function to implement state reading extension functions such as `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/package-summary#(androidx.compose.foundation.style.StyleStateScope).pressed(kotlin.Function0)`. | Cmn | |
| From [androidx.compose.foundation.style.TextAlignScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextAlignScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextAlignScope#textAlign(androidx.compose.ui.text.style.TextAlign)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextAlign)` Sets the text alignment (e.g., start, end, center). | Cmn | |
| From [androidx.compose.foundation.style.TextDecorationScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextDecorationScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextDecorationScope#textDecoration(androidx.compose.ui.text.style.TextDecoration)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextDecoration)` Sets the text decoration (e.g., underline, line-through). | Cmn | |
| From [androidx.compose.foundation.style.TextDirectionScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextDirectionScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextDirectionScope#textDirection(androidx.compose.ui.text.style.TextDirection)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextDirection)` Sets the text direction (e.g., LTR, RTL, content-based). | Cmn | |
| From [androidx.compose.foundation.style.TextIndentScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextIndentScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextIndentScope#textIndent(androidx.compose.ui.text.style.TextIndent)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextIndent)` Sets the text indent (e.g., for the first line or subsequent lines). | Cmn | |
| From [androidx.compose.foundation.style.TextMotionScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextMotionScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextMotionScope#textMotion(androidx.compose.ui.text.style.TextMotion)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextMotion)` Sets the text motion strategy, which can be used to optimize for readability or for smooth animations. | Cmn | |
| From [androidx.compose.foundation.style.TextStyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextStyleScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextStyleScope#textStyle(androidx.compose.ui.text.TextStyle)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle)` Applies a complete `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle` object to the component. | Cmn | |
| From [androidx.compose.foundation.style.TransformOriginScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TransformOriginScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TransformOriginScope#transformOriginX(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Offset percentage along the x-axis for which contents are rotated and scaled. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TransformOriginScope#transformOriginY(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Offset percentage along the y-axis for which contents are rotated and scaled. | Cmn | |
| From [androidx.compose.foundation.style.TranslationScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TranslationScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TranslationScope#translationX(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Translates (moves) the component horizontally. | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TranslationScope#translationY(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Translates (moves) the component vertically. | Cmn | |
| From [androidx.compose.foundation.style.ZIndexScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ZIndexScope) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ZIndexScope#zIndex(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets the Z-index of the component. | Cmn | |

| ### Inherited properties |
|---|
| From [androidx.compose.runtime.CompositionLocalAccessorScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocalAccessorScope) |---|---|---| | `T` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocal<T>.https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionLocalAccessorScope#(androidx.compose.runtime.CompositionLocal).currentValue()` An extension property that allows accessing the current value of a composition local in the context of this scope. | Cmn | |
| From [androidx.compose.ui.unit.Density](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#density()` The logical density of the display. | Cmn | |
| From [androidx.compose.ui.unit.FontScaling](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/FontScaling) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/FontScaling#fontScale()` Current user preference for the scaling factor for fonts. | Cmn | |
| From [androidx.compose.foundation.style.StyleStateScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateScope) |---|---|---| | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleState` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleStateScope#state()` The state of the component. applying this style. | Cmn | |