Stylish Dialog Actions
A confirm/cancel button row for the bottom of a dialog.
Renders two visually connected buttons — cancel on the left, confirm on the right — using StylishConnectedButtonRow. The cancel button uses a subdued MaterialTheme.colorScheme.surfaceVariant container while the confirm button uses the default prominent style. Place this inside a com.segnities007.stylishui.components.atoms.StylishDialogSurface or any dialog-like container, typically with Modifier.fillMaxWidth passed via modifier.
Parameters
Text displayed on the confirm button when confirmContent is null.
Text displayed on the cancel button when cancelContent is null.
Callback invoked when the confirm button is tapped.
Callback invoked when the cancel button is tapped.
Modifier applied to the underlying StylishConnectedButtonRow. Callers control the row's width — pass Modifier.fillMaxWidth to stretch it to the container.
Optional ButtonColors for the cancel button. When null (the default), the subdued MaterialTheme.colorScheme.surfaceVariant container with MaterialTheme.colorScheme.onSurfaceVariant content is used.
Optional ButtonColors for the confirm button. When null (the default), the prominent StylishConnectedButtonRow default colors are used.
Horizontal gap between the two buttons. Defaults to StylishTheme.dimensions.connectedSpacing.
Whether the confirm button is interactive. Defaults to true. Set to false to block confirmation until preconditions are met (e.g. a required field is filled).
Whether the cancel button is interactive. Defaults to true.
Optional custom composable rendered inside the cancel button, replacing the cancelLabel text. When null (the default), a Text with cancelLabel is rendered.
Optional custom composable rendered inside the confirm button, replacing the confirmLabel text. When null (the default), a Text with confirmLabel is rendered.