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 fractalsvelteImport
<script lang="ts">
import { Dialog } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Dialog } from 'fractalsvelte';
</script>
<Dialog />Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | The heading shown in the surface. |
trigger | string | 'Open dialog' | Label for the control that opens the surface. |
open | boolean | false | Whether the surface is open. Supports bind:. |
