diff --git a/SharpbinV3.Client/src/lib/components/Dropdown.svelte b/SharpbinV3.Client/src/lib/components/Dropdown.svelte index 0c3def2..f74b882 100644 --- a/SharpbinV3.Client/src/lib/components/Dropdown.svelte +++ b/SharpbinV3.Client/src/lib/components/Dropdown.svelte @@ -11,6 +11,7 @@ export let displayValue: (val: string | number) => string = (val) => { return options.find((o) => o.value === val)?.label ?? String(val); }; + export let variant: string = ''; let isOpen = false; let searchQuery = ''; @@ -55,11 +56,12 @@ -
+
@@ -67,12 +69,14 @@ {#if isOpen}
{#if searchable} @@ -85,6 +89,7 @@ on:click={() => handleSelect(option.value)} class="w-full border-b border-neutral-700 px-3 py-2 text-left last:border-b-0 hover:bg-neutral-600" class:bg-neutral-700={value === option.value} + class:dropdown-sm-option={variant === 'sm'} > {option.label} @@ -93,3 +98,33 @@
{/if}
+ +