refactor: clean class (#26879)

This commit is contained in:
Jason Rasmussen
2026-03-12 10:53:46 -04:00
committed by GitHub
parent 5c3777ab46
commit 3bd37ebbfb
10 changed files with 93 additions and 43 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { cleanClass } from '$lib';
import type { ClassValue } from 'svelte/elements';
interface Props {
@@ -8,7 +9,7 @@
let { class: className }: Props = $props();
</script>
<div class="delayed inline-flex items-center gap-1 {className}">
<div class={cleanClass('delayed inline-flex items-center gap-1', className)}>
{#each [0, 1, 2] as i (i)}
<span class="dot block size-1.5 rounded-full bg-white shadow-[0_0_3px_rgba(0,0,0,0.6)]" style:--delay="{i * 0.25}s"
></span>