DialogContent
fun DialogContent(open: Boolean, onDismiss: () -> Unit, modifier: Modifier = Modifier, showCloseButton: Boolean = true, properties: DialogProperties = DialogProperties(usePlatformDefaultWidth = false), content: @Composable ColumnScope.() -> Unit)(source)
The dialog panel — mirrors DialogContent from dialog.tsx.
Renders a full-screen scrim + centred card. Includes a close × button when showCloseButton = true (default). Uses KButton for the close action.
DialogContent(open = open, onDismiss = { open = false }) {
DialogHeader { DialogTitle("Hello") }
}Content copied to clipboard