Dialogs
Usage
Copy Code
<Button popovertarget="simple-dialog">Show Dialog</Button>
<Dialog
bind:hidePopover
headline="Reset settings?"
supportingText="This will reset you app preferences back to their default settings."
id="simple-dialog"
divider
>
{#snippet icon()}
<Icon>settings</Icon>
{/snippet}
{#snippet buttons()}
<Button
onclick={() => {
hidePopover()
}}
variant="text">Cancel</Button
>
<Button
onclick={() => {
hidePopover()
}}
variant="text">Accept</Button
>
{/snippet}
</Dialog>