Element: #462 Type to confirm (feedback/alert-dialog)
What it shows: A destructive alert dialog with a rich description and a TextField body; Confirm stays disabled until the key is typed.
When to use: Irreversible deletes that need a deliberate confirmation, such as typing the item key.
Spec:
- Trigger `` leading icon; it resets `typed = ''` and opens the dialog
- `3 linked records too and cannot be undone.`
- Body is ``
- `onconfirm` sets `deleted = true`, which shows `{key} deleted.` in a ``
Tags: alert-dialog, type-to-confirm, confirm-disabled, destructive, children, confirm-props
Needs: @codeatlasdev/ui@4.4.0
Components: AlertDialog, Button, TextField
Live demo: https://ui.codeatlas.com.br/docs/feedback/alert-dialog#type-to-confirm
{#if deleted}{key} deleted.{/if}
(deleted = true)}
>
{#snippet description()}This removes 3 linked records too and cannot be undone.{/snippet}