File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/kit-headless/src/components/accordion Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
useContextProvider ,
6
6
useSignal ,
7
7
useStore ,
8
+ useTask$ ,
8
9
type QwikIntrinsicElements ,
9
- useTask$
10
+ type PropFunction
10
11
} from '@builder.io/qwik' ;
11
12
12
13
import { type AccordionRootContext } from './accordion-context.type' ;
@@ -16,8 +17,8 @@ export type AccordionRootProps = {
16
17
behavior ?: 'single' | 'multi' ;
17
18
animated ?: boolean ;
18
19
collapsible ?: boolean ;
19
- onSelectedIndexChange$ ?: ( index : number ) => void ;
20
- onFocusIndexChange$ ?: ( index : number ) => void ;
20
+ onSelectedIndexChange$ ?: PropFunction < ( index : number ) => void > ;
21
+ onFocusIndexChange$ ?: PropFunction < ( index : number ) => void > ;
21
22
} & QwikIntrinsicElements [ 'div' ] ;
22
23
23
24
export const AccordionRoot = component$ (
You can’t perform that action at this time.
0 commit comments