//ui/dev.atick.core.ui.components/JetpackButton
JetpackButton
[androidJvm]\
fun JetpackButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, contentPadding: PaddingValues = ButtonDefaults.ContentPadding, content: @ComposableRowScope.() -> Unit)
Jetpack filled button with generic content slot. Wraps Material 3 Button.
Parameters
androidJvm
onClick | Will be called when the user clicks the button. |
modifier | Modifier to be applied to the button. |
enabled | Controls the enabled state of the button. When false , this button will not be clickable and will appear disabled to accessibility services. |
contentPadding | The spacing values to apply internally between the container and the content. |
content | The button content. |
[androidJvm]\
fun JetpackButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, text: @Composable() -> Unit, leadingIcon: @Composable() -> Unit? = null)
Jetpack filled button with text and icon content slots.
Parameters
androidJvm
onClick | Will be called when the user clicks the button. |
modifier | Modifier to be applied to the button. |
enabled | Controls the enabled state of the button. When false , this button will not be clickable and will appear disabled to accessibility services. |
text | The button text label content. |
leadingIcon | The button leading icon content. Pass null here for no leading icon. |