Stylish Popconfirm
An inline confirmation anchored to a trigger — the web "Popconfirm" pattern from Ant Design.
Renders title (and optional description) in a popover anchored to anchor, with confirmLabel/cancelLabel buttons. The popover is fully hoisted via expanded/onExpandedChange.
Parameters
Whether the confirmation popover is visible.
Called when the popover should open or close (including dismissal by tapping outside).
Modifier applied to the anchor wrapper.
The trigger content (typically a destructive button).
The confirmation question, e.g. "この項目を削除しますか?".
Optional supporting explanation.
Text of the confirm button. Defaults to "OK".
Text of the cancel button. Defaults to "キャンセル".
Called when the user confirms. The caller should dismiss the popover and perform the action.
Called when the user cancels or dismisses.
Optional ButtonColors for the confirm button. Defaults to the error container look for destructive confirmations.
Typography of title. Defaults to MaterialTheme.typography.titleSmall.
Typography of description. Defaults to MaterialTheme.typography.bodySmall.
Corner shape of the popover. Defaults to RoundedCornerShape with DefaultStylishDimensions.connectedCornerRadius.
Width of the popover. Defaults to 260 dp.