Define DropdownOption interface

This commit is contained in:
2023-08-16 22:03:05 +02:00
parent 64d57d4d60
commit 8cf611125d

View File

@@ -4,9 +4,14 @@
import { clickOutside } from '$lib/utils/click-outside';
import { fly } from 'svelte/transition';
export let options: string[] = [];
interface DropdownOption {
value: string;
icon?: typeof LinkButton;
}
export let options: DropdownOption[] = [];
export let value = options[0];
export let icons: any[] = undefined;
export let icons: typeof LinkButton[] | undefined = undefined;
let showMenu = false;