first commit
This commit is contained in:
commit
e687b4437b
418 files changed
+33577
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<script lang="ts">
|
||||
import { themeState } from '@/lib/theme.svelte';
|
||||
import { Toaster as SonnerPrimitive, type ToasterProps } from 'svelte-sonner';
|
||||
|
||||
let { ...restProps }: ToasterProps = $props();
|
||||
|
||||
const { appearance } = themeState();
|
||||
</script>
|
||||
|
||||
<SonnerPrimitive
|
||||
theme={appearance.value}
|
||||
class="toaster group"
|
||||
position="bottom-right"
|
||||
style="--normal-bg: var(--popover); --normal-text: var(--popover-foreground); --normal-border: var(--border);"
|
||||
{...restProps}
|
||||
/>
|
||||
@@ -0,0 +1 @@
|
||||
export { default as Toaster } from './Sonner.svelte';
|
||||
Reference in new issue
Block a user