Download tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte from Parakon/parakon-runtime: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/Parakon/parakon-runtime/resolve/main/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte
- Command line
-
hf download hf://Parakon/parakon-runtime/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte
-
curl -L -o DialogMermaidPreview.svelte https://huggingface.co/Parakon/parakon-runtime/resolve/main/tools/ui/src/lib/components/app/dialogs/DialogMermaidPreview.svelte
587 Bytes
| <script lang="ts"> | |
| import { MermaidPreview } from '$lib/components/app/content'; | |
| import * as Dialog from '$lib/components/ui/dialog/index.js'; | |
| interface Props { | |
| open: boolean; | |
| svgHtml: string; | |
| onOpenChange?: (open: boolean) => void; | |
| } | |
| let { onOpenChange, open = $bindable(), svgHtml }: Props = $props(); | |
| </script> | |
| <Dialog.Root bind:open {onOpenChange}> | |
| <Dialog.Content | |
| class="z-999999 grid max-h-full max-w-full! grid-rows-[1fr_auto] overflow-hidden p-0 md:h-[90vh] md:max-w-[90vw]!" | |
| showCloseButton | |
| > | |
| <MermaidPreview {svgHtml} /> | |
| </Dialog.Content> | |
| </Dialog.Root> | |