migrate: convert most components to svelte 5
This commit is contained in:
1 parent
d670f39f0a
commit
10ef4123da
225 files changed
+5441
-3341
No files matched your search
@@ -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}">
|
||||
|
||||
Reference in new issue
Block a user