Badge Box
fun BadgeBox(badge: @Composable () -> Unit, modifier: Modifier = Modifier, overhang: Dp = BadgeDefaults.DotOverhang, content: @Composable () -> Unit)
A layout that anchors badge at the top end corner of content, mirroring COUIRedDotFrameLayout.
A positive overhang lets the badge stick out of the content's top end corner by that amount and grows the layout accordingly (COUI rectangular anchors); a negative overhang insets the badge inside the corner instead (COUI circular anchors such as avatars).
Parameters
badge
The badge to anchor, typically a Badge.
modifier
The modifier to be applied to the layout.
overhang
How far the badge extends beyond the content's top end corner.
content
The anchor content, typically an icon.