prep: replace $$props.class with props

This commit is contained in:
Xylight committed 2024-10-23 19:55:20 -07:00
1 parent 3ca72662ca
commit 0718c8e0c6
69 files changed
+383 -214

No files matched your search

+4 -1
View File
@@ -19,6 +19,9 @@
navigator.clipboard.writeText(src)
}
}
let clazz: string = ''
export { clazz as class }
</script>
<Material
@@ -64,7 +67,7 @@
<pre
bind:this={pre}
{...$$restProps}
class="{$$props.class} bg-white dark:bg-zinc-900 px-4 overflow-auto max-h-96">
class="{clazz} bg-white dark:bg-zinc-900 px-4 overflow-auto max-h-96">
{#if htmlSrc}
{@html htmlSrc}
{:else if $$slots.default}