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

@@ -13,18 +13,23 @@
ViewColumns,
} from 'svelte-hero-icons'
export let showLabel = true
interface Props {
showLabel?: boolean
[key: string]: any
}
let { showLabel = true, ...rest }: Props = $props()
</script>
<Select {...$$restProps} bind:value={$userSettings.view}>
<svelte:fragment slot="label">
<Select {...rest} bind:value={$userSettings.view}>
{#snippet customLabel()}
{#if showLabel}
<span class="flex items-center gap-1">
<Icon src={ViewColumns} size="14" micro />
{$t('filter.view.label')}
</span>
{/if}
</svelte:fragment>
{/snippet}
<option value="cozy">
<Icon
src={RectangleGroup}