migrate: convert most components to svelte 5

This commit is contained in:
Xylight committed 2024-10-25 19:33:27 -07:00
1 parent d670f39f0a
commit 10ef4123da
225 files changed
+5441 -3341

No files matched your search

+16 -7
View File
@@ -1,14 +1,23 @@
<script lang="ts">
import FormattedNumber from '../util/FormattedNumber.svelte'
export let label: string
export let content: string
export let formatted: boolean = false
interface Props {
label: string
content: string
formatted?: boolean
labelClass?: string
contentClass?: string
class?: string
}
export let labelClass: string = ''
export let contentClass: string = ''
let clazz: string = ''
export { clazz as class }
let {
label,
content,
formatted = false,
labelClass = '',
contentClass = '',
class: clazz = '',
}: Props = $props()
</script>
<div class="flex flex-col {clazz}">