AsyncTextButton
fun AsyncTextButton(text: String, modifier: Modifier = Modifier, isLoading: Boolean = false, enabled: Boolean = isLoading.not(), shape: Shape = ButtonDefaults.shape, containerColor: Color = ButtonDefaults.buttonColors().containerColor, textColor: Color = ButtonDefaults.buttonColors().contentColor, contentPadding: PaddingValues = ButtonDefaults.ContentPadding, onClick: () -> Unit = {})
A button that renders a circular progress CircularProgressIndicator in case of loading or text otherwise
Parameters
text
String text of the button
modifier
Modifier to be applied to the button
isLoading
whether the button should render the content or it's loading indicator
shape
shape to be applied to the button container
containerColor
color of button container
textColor
color of text
contentPadding
padding to be applied on the content
onClick
click action