feature/searchbar-enhance #17
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
Component: FontList
|
||||||
|
|
||||||
|
- Displays a virtualized list of fonts with loading, empty, and error states.
|
||||||
|
- Uses unifiedFontStore from context for data, but can accept explicit fonts via props.
|
||||||
|
-->
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { fontshareStore } from '$entities/Font/model/store/fontshareStore.svelte';
|
import { fontshareStore } from '$entities/Font/model/store/fontshareStore.svelte';
|
||||||
import {
|
import {
|
||||||
@@ -6,15 +12,9 @@ import {
|
|||||||
Title as ItemTitle,
|
Title as ItemTitle,
|
||||||
} from '$shared/shadcn/ui/item';
|
} from '$shared/shadcn/ui/item';
|
||||||
import { VirtualList } from '$shared/ui';
|
import { VirtualList } from '$shared/ui';
|
||||||
/**
|
|
||||||
* FontList
|
|
||||||
*
|
|
||||||
* Displays a virtualized list of fonts with loading, empty, and error states.
|
|
||||||
* Uses unifiedFontStore from context for data, but can accept explicit fonts via props.
|
|
||||||
*/
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<VirtualList items={fontshareStore.fonts} itemHeight={30}>
|
<VirtualList items={fontshareStore.fonts}>
|
||||||
{#snippet children({ item: font })}
|
{#snippet children({ item: font })}
|
||||||
<ItemRoot>
|
<ItemRoot>
|
||||||
<ItemContent>
|
<ItemContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user