Loading Button
fun LoadingButton(onClick: () -> Unit, modifier: Modifier = Modifier, loading: Boolean = false, enabled: Boolean = true, content: @Composable () -> Unit)
Button with an option to show a loading animation.
Parameters
on Click
called when the button is clicked
modifier
the Modifier to be applied to the button
loading
state of the loading animation, if true, the animation will be shown
enabled
controls the enabled state of this button