From c45429f38d894566d022ce5ceede18bef935f4d5 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 16 Feb 2026 14:15:47 +0300 Subject: [PATCH] feat(SampleList): add skeleton snippet --- .../SampleList/ui/SampleList/SampleList.svelte | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/widgets/SampleList/ui/SampleList/SampleList.svelte b/src/widgets/SampleList/ui/SampleList/SampleList.svelte index 7b36ccf..bcc29e3 100644 --- a/src/widgets/SampleList/ui/SampleList/SampleList.svelte +++ b/src/widgets/SampleList/ui/SampleList/SampleList.svelte @@ -16,6 +16,7 @@ import { controlManager, } from '$features/SetupFont'; import { throttle } from '$shared/lib/utils'; +import { Skeleton } from '$shared/ui'; let text = $state('The quick brown fox jumps over the lazy dog...'); let wrapper = $state(null); @@ -43,6 +44,20 @@ const checkPosition = throttle(() => { }, 100); +{#snippet skeleton()} +
+ {#each Array(5) as _, i} +
+
+ + +
+ +
+ {/each} +
+{/snippet} + { itemHeight={220} useWindowScroll={true} weight={controlManager.weight} + {skeleton} > {#snippet children({ item: font,