Compose Modifier

composed

Declare a just-in-time composition of a Modifier that will be composed for each element it modifies.

InspectorInfoInComposedModifierSample

@Suppress("UnnecessaryComposedModifier")
@Composable
@Sampled
fun InspectorInfoInComposedModifierSample() {

    // let's create your own custom stateful modifier

InspectorInfoInComposedModifierWithArgumentsSample

@Suppress("UnnecessaryComposedModifier")
@Composable
@Sampled
fun InspectorInfoInComposedModifierWithArgumentsSample() {

    // let's create your own custom stateful modifier with multiple arguments
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: