Skip to content

Commit 66e89b6

Browse files
fix(accordion): add propfunction type
1 parent 048d9ce commit 66e89b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/kit-headless/src/components/accordion/accordion-root.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import {
55
useContextProvider,
66
useSignal,
77
useStore,
8+
useTask$,
89
type QwikIntrinsicElements,
9-
useTask$
10+
type PropFunction
1011
} from '@builder.io/qwik';
1112

1213
import { type AccordionRootContext } from './accordion-context.type';
@@ -16,8 +17,8 @@ export type AccordionRootProps = {
1617
behavior?: 'single' | 'multi';
1718
animated?: boolean;
1819
collapsible?: boolean;
19-
onSelectedIndexChange$?: (index: number) => void;
20-
onFocusIndexChange$?: (index: number) => void;
20+
onSelectedIndexChange$?: PropFunction<(index: number) => void>;
21+
onFocusIndexChange$?: PropFunction<(index: number) => void>;
2122
} & QwikIntrinsicElements['div'];
2223

2324
export const AccordionRoot = component$(

0 commit comments

Comments
 (0)