@Composable
fun LabelButton(
label: String,
onClick: () -> Unit,
modifier: Modifier = Modifier,
leadingIcon: @Composable () -> Unit? = null,
style: ButtonStyle = ButtonStyle.Primary,
enabled: Boolean = true,
expanded: Boolean = false,
dimensions: ButtonDimensions = UiSetTheme.dimensions.buttons,
shape: Shape = UiSetTheme.shapes.button,
labelTextStyle: TextStyle = UiSetTheme.typography.body,
contentAlignment: Alignment.Horizontal = Alignment.CenterHorizontally,
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
indication: UiSetIndicationSpec? =
UiSetTheme.indications.standard.forContext(style.interactionColorContext),
)label: String
action text
onClick: () -> Unit
callback invoked when the button is activated
modifier: Modifier
modifier applied to the full interaction target
leadingIcon: (@Composable () -> Unit)?
optional icon displayed before label
style: ButtonStyle
semantic button colors and border treatment
enabled: Boolean
whether the button accepts input
expanded: Boolean
whether the button fills its available width
dimensions: ButtonDimensions
visual height, padding, icon, and border values
shape: Shape
clipping, background, and border shape
labelTextStyle: TextStyle
typography for label
contentAlignment: Alignment.Horizontal
horizontal alignment of the label and icon group
interactionSource: MutableInteractionSource
interaction stream shared with callers observing button state
indication: UiSetIndicationSpec?
press, hover, and focus indication drawn inside the visual container