Package-level declarations

Types

Link copied to clipboard

Slot structure passed as receiver to Dialog content.

Functions

Link copied to clipboard
fun Dialog(open: Boolean, onOpenChange: (Boolean) -> Unit, content: @Composable DialogScope.() -> Unit)

Shadcn/ui-style Dialog root — mirrors Dialog with a controlled open state.

Link copied to clipboard
fun DialogClose(onDismiss: () -> Unit, content: @Composable () -> Unit)

Any composable that dismisses the dialog when tapped.

Link copied to clipboard
fun DialogContent(open: Boolean, onDismiss: () -> Unit, modifier: Modifier = Modifier, showCloseButton: Boolean = true, properties: DialogProperties = DialogProperties(usePlatformDefaultWidth = false), content: @Composable ColumnScope.() -> Unit)

The dialog panel — mirrors DialogContent from dialog.tsx.

Link copied to clipboard
fun DialogDescription(text: String, modifier: Modifier = Modifier)
Link copied to clipboard
fun DialogFooter(modifier: Modifier = Modifier, showCloseButton: Boolean = false, onDismiss: () -> Unit? = null, content: @Composable RowScope.() -> Unit)

Footer row with optional built-in close button. Uses KButton for showCloseButton.

Link copied to clipboard
fun DialogHeader(modifier: Modifier = Modifier, content: @Composable ColumnScope.() -> Unit)
Link copied to clipboard
fun DialogOverlay(onDismiss: () -> Unit, modifier: Modifier = Modifier)

Semi-transparent scrim behind the dialog panel.

Link copied to clipboard
fun DialogPortal(content: @Composable () -> Unit)

No-op wrapper to mirror the web DialogPortal slot.

Link copied to clipboard
fun DialogTitle(text: String, modifier: Modifier = Modifier)
Link copied to clipboard
fun DialogTrigger(content: @Composable () -> Unit)

Wraps any composable that should open the dialog. Pass the setter directly if managing state externally.