Skip to content
View Markdown

ConfirmationDialog ​

A set of choices presented for the current task.

tsx
import { Button, LabeledContent, ConfirmationDialog } from '@satinhq/kit'

Example ​

Click Remove Download, then Remove to confirm.

Bind presentation state ​

Keep isPresented in React state and pass its setter to onPresentedChange. The presentation updates the binding when it closes.

Finish the task ​

Use a Done button inside a cover. For an alert or dialog, supply actions with labels and optional roles. Presentation state starts closed after an app relaunch.

API ​

Scroll horizontally to read every column.

PropTypeDescription
isPresentedbooleanWhether it is open.
onPresentedChange(presented: boolean) => voidReceives dismissal changes.
titlestringThe accessible title.
actionsreadonly ActionItem[]Available commands.

Related: Quick start, List, Screen.

:::

Satin runs on the Lumen rendering engine and is open source under the MIT License.