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

+11 -3
View File
@@ -1,15 +1,23 @@
<script lang="ts">
import { run } from 'svelte/legacy';
import { expoOut } from 'svelte/easing'
import { tweened } from 'svelte/motion'
export let progress: number = 0
interface Props {
progress?: number;
}
let { progress = 0 }: Props = $props();
let tween = tweened(progress, { easing: expoOut })
$: tween.set(progress)
run(() => {
tween.set(progress)
});
</script>
<div
class="bg-primary-900 dark:bg-primary-100 h-1 rounded-full"
style="width: {$tween * 100}%;"
/>
></div>