StylishResult

fun StylishResult(title: String, modifier: Modifier = Modifier, variant: StylishResultVariant = StylishResultVariant.Info, description: String? = null, icon: @Composable () -> Unit? = null, titleStyle: TextStyle = MaterialTheme.typography.headlineSmall, descriptionStyle: TextStyle = MaterialTheme.typography.bodyMedium, contentColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, iconSize: Dp = 64.dp, action: @Composable () -> Unit? = null)

A full status page — the web "Result" pattern from Ant Design.

Shows a large variant icon, a title, an optional description, and an optional action slot (e.g. a button row). Use it for success/error/empty outcomes of complete flows (form submission, payment, sign-in, etc.).

Parameters

title

The status heading.

modifier

Modifier applied to the root column.

variant

The semantic variant controlling icon and colors.

description

Optional supporting text under the title.

icon

Optional leading icon override. Defaults to the variant icon.

titleStyle

Typography of title. Defaults to MaterialTheme.typography.headlineSmall.

descriptionStyle

Typography of description. Defaults to MaterialTheme.typography.bodyMedium.

contentColor

Foreground color of the text. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

iconSize

Edge length of the leading icon. Defaults to 64 dp.

action

Optional trailing slot rendered below the description (e.g. confirm/cancel buttons).