Interface

StyleScope

A StyleScope is the receiver scope of a Style lambda.

Source set: Common
public 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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: