Dialog

A native modal dialog.

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 { Dialog } from 'fractalsvelte';
</script>

Usage

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

<Dialog />

Props

PropTypeDefaultDescription
titlestring-The heading shown in the surface.
triggerstring'Open dialog'Label for the control that opens the surface.
openbooleanfalseWhether the surface is open. Supports bind:.