ButtonContent
Source set: Android
@Composable
public fun ButtonContent(
modifier: Modifier = Modifier,
secondaryLabel: (@Composable RowScope.() -> Unit)? = null,
icon: (@Composable BoxScope.() -> Unit)? = null,
enabled: Boolean = true,
colors: ButtonColors = ButtonDefaults.buttonColors(),
label: @Composable RowScope.() -> Unit,
)
Parameters
| modifier | Modifier to be applied to the button content layout. |
| secondaryLabel | A slot for providing the button's secondary label. The contents are expected to be text which is "start" aligned if there is an icon present and "start" or "center" aligned if not. label and secondaryLabel contents should be consistently aligned. |
| icon | A slot for providing the button's icon. The contents are expected to be a horizontally and vertically aligned icon of size ButtonDefaults.IconSize or ButtonDefaults.LargeIconSize. |
| enabled | Controls the enabled state of the button content. When false, the content will be displayed in a disabled style. |
| colors | ButtonColors that will be used to resolve the content, secondary content, and icon colors in different states. See ButtonDefaults.buttonColors. |
| label | A slot for providing the button's main label. The contents are expected to be text which is "start" aligned if there is an icon present and "start" or "center" aligned if not. |