Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

StyleScope

A StyleScope is the receiver scope of a Style lambda.

Source set: Common
@ExperimentalFoundationStyleApi
interface StyleScope :
    CustomStyleScope,
    StyleStateScope,
    AnimateStyleScope,
    LayoutStyleScope,
    LayerStyleScope,
    DrawStyleScope,
    TextStyleStyleScope

A StyleScope is the receiver scope of a Style lambda. It allows defining the properties of a style that will be used by a styleable 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 state property.

The properties set on a style scope affect the styled region of a component. A component creates a styled region by using the styleable modifier.

Last updated: