Link Button
fun LinkButton(modifier: Modifier = Modifier, label: String, style: ButtonStyle = LocalLinkButtonStyle.current, icons: ButtonIcons? = null, enabled: Boolean = true, loading: Boolean = false, indication: Indication? = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onClick: () -> Unit, onClickLabel: String? = null, motion: Motion<LinkButtonMotionStyle> = rememberLinkButtonMotion(
motionContext = rememberMotionContext(interactionSource),
))
Кнопка с текстом и иконкой с прозрачным фоном. Если loading == true, кнопка отобразит круглый индикатор загрузки. На время анимации загрузки контент будет скрыт или станет полупрозрачным в зависимости от стиля.
Parameters
modifier
модификатор
label
текст кнопки
style
стиль кнопки
icons
иконки
enabled
флаг доступности кнопки
loading
флаг загрузки
indication
Indication кнопки
interaction Source
источник взаимодействий MutableInteractionSource
on Click
обработчик нажатий
on Click Label
надпись для Accessibility
motion
объект анимаций