File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4
4
import Icon , { type IconOptions } from ' ../icon.svelte' ;
5
5
import type { ListboxOption } from ' @melt-ui/svelte/dist/builders/listbox/types' ;
6
6
import { fly } from ' svelte/transition' ;
7
+ import clsx from ' clsx' ;
7
8
8
9
const {
9
10
elements : { trigger, menu, option },
19
20
multiple: true
20
21
});
21
22
23
+ let className: undefined | string = undefined ;
24
+ export { className as class };
22
25
export let icon: undefined | IconOptions = undefined ;
23
26
export let options: string [] = [];
24
27
export let selected: ListboxOption <string >[] | undefined = [];
27
30
$ : meltSelected .set (selected );
28
31
</script >
29
32
30
- <div class =" flex flex-col gap-1" >
33
+ <div class ={ clsx ( ' flex flex-col gap-1' , className )} >
31
34
<button
32
35
class =" flex h-12 min-w-[220px] items-center justify-between rounded-sm border border-background-offset bg-background-panel px-5 py-2 text-sm font-semibold hover:opacity-90 hover:transition-all focus:border-border-active focus:outline-none focus:ring-4 focus:ring-outline focus:transition-all"
33
36
{...$trigger }
You can’t perform that action at this time.
0 commit comments