View as Markdown

API reference: @salmonui/overlays/dialog

useAlertfunction

import { useAlert } from '@salmonui/overlays/dialog';
function useAlert(): (options: ConfirmOptions) => Promise<void>;

await alert({ title, description }): resolves when the user acknowledges (or on abort).