Badge
fun Badge(modifier: Modifier = Modifier, style: BadgeStyle = LocalBadgeStyle.current, label: String = "", startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<BadgeMotionStyle> = rememberBadgeMotion(
motionContext = rememberMotionContext(interactionSource),
))
Компонент Badge с текстом и иконкой
Parameters
modifier
модификатор
style
стиль компонента
label
текст
start Content
контент в начале
end Content
контент в конце
interaction Source
источник взаимодействий
motion
объект анимаций
fun Badge(modifier: Modifier = Modifier, style: BadgeStyle = LocalBadgeStyle.current, label: @Composable () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<BadgeMotionStyle> = rememberBadgeMotion(
motionContext = rememberMotionContext(interactionSource),
))
Компонент Badge с кастомным контентом в центре и иконкой
Parameters
modifier
модификатор
style
стиль компонента
label
контент в центре
start Content
контент в начале
end Content
контент в конце
interaction Source
источник взаимодействий
motion
объект анимаций