Alert Dialog

A modal that requires an explicit confirmation.

Examples

Installation

Install the package, then import only the components a route uses. Exports are tree-shakable.

Install
pnpm add fractalsvelte
Import
<script lang="ts">
	import { AlertDialog } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { AlertDialog } from 'fractalsvelte';
</script>

<AlertDialog />

Props

PropTypeDefaultDescription
titlestring-The heading shown in the surface.
descriptionstring-Supporting text shown beneath the title.
triggerstring'Open alert'Label for the control that opens the surface.
confirmLabelstring'Continue'Label for the confirm action.
cancelLabelstring'Cancel'Label for the cancel action.
onconfirm() => void-Called when the user confirms.