|
11 | 11 | arrowdown?: Snippet; |
12 | 12 | iconSlot?: Snippet; |
13 | 13 | isOpen?: boolean | undefined; |
14 | | - btnclass?: string | undefined; |
| 14 | + btnClass?: string | undefined; |
15 | 15 | label: string | undefined; |
16 | 16 | spanClass?: string | undefined; |
17 | | - ulclass?: string | undefined; |
| 17 | + ulClass?: string | undefined; |
18 | 18 | transitionType?: TransitionTypes; |
19 | 19 | transitionParams?: TransitionParamTypes; |
20 | | - svgclass?: string; |
| 20 | + svgClass?: string; |
21 | 21 | } |
22 | 22 |
|
23 | 23 | let { |
|
26 | 26 | arrowdown, |
27 | 27 | iconSlot, |
28 | 28 | isOpen, |
29 | | - btnclass, |
| 29 | + btnClass, |
30 | 30 | label, |
31 | 31 | spanClass, |
32 | | - ulclass, |
| 32 | + ulClass, |
33 | 33 | transitionType = 'slide', |
34 | 34 | transitionParams = {}, |
35 | | - svgclass, |
| 35 | + svgClass, |
36 | 36 | ...attributes |
37 | 37 | }: Props = $props(); |
38 | 38 |
|
39 | 39 | let btnCls = twMerge( |
40 | 40 | 'flex items-center w-full text-base font-normal text-gray-900 rounded transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700', |
41 | | - btnclass |
| 41 | + btnClass |
42 | 42 | ); |
43 | 43 |
|
44 | 44 | let spanCls: string = twMerge( |
45 | 45 | 'flex-1 ms-3 text-left whitespace-nowrap', |
46 | 46 | spanClass |
47 | 47 | ); |
48 | | - let ulCls: string = twMerge('py-2 space-y-2', ulclass); |
| 48 | + let ulCls: string = twMerge('py-2 space-y-2', ulClass); |
49 | 49 | let svgCls: string = twMerge( |
50 | 50 | 'h-3 w-3 text-gray-800 dark:text-white', |
51 | | - svgclass |
| 51 | + svgClass |
52 | 52 | ); |
53 | 53 |
|
54 | 54 | // make a custom transition function that returns the desired transition |
|
145 | 145 | @props:arrowdown?: Snippet; |
146 | 146 | @props:iconSlot?: Snippet; |
147 | 147 | @props:isOpen?: boolean | undefined; |
148 | | -@props:btnclass?: string | undefined; |
| 148 | +@props:btnClass?: string | undefined; |
149 | 149 | @props:label: string | undefined; |
150 | 150 | @props:spanClass?: string | undefined; |
151 | | -@props:ulclass?: string | undefined; |
| 151 | +@props:ulClass?: string | undefined; |
152 | 152 | @props:transitionType?: TransitionTypes; |
153 | 153 | @props:transitionParams?: TransitionParamTypes; |
154 | | -@props:svgclass?: string; |
| 154 | +@props:svgClass?: string; |
155 | 155 | --> |
0 commit comments