JetpackOutlinedButton

fun JetpackOutlinedButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, contentPadding: PaddingValues = ButtonDefaults.ContentPadding, content: @Composable RowScope.() -> Unit)

Jetpack outlined button with generic content slot. Wraps Material 3 OutlinedButton.

Parameters

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.


fun JetpackOutlinedButton(onClick: () -> Unit, text: @Composable () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, leadingIcon: @Composable () -> Unit? = null)

Jetpack outlined button with text and icon content slots.

Parameters

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.