Compose Component

BadgedBox

Material Design badge box.

BadgedBox social preview

BadgedBox

Source set: Common
@Composable
public fun BadgedBox(
    badge: @Composable BoxScope.() -> Unit,
    modifier: Modifier = Modifier,
    content: @Composable BoxScope.() -> Unit,
)

Parameters

badge the badge to be displayed - typically a Badge
modifier the Modifier to be applied to this BadgedBox
content the anchor to which this badge will be positioned
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: