Skip to content

Commit 07ad8b1

Browse files
fix: accordion inline types
1 parent 72b46a9 commit 07ad8b1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { Component, JSXNode, PropsOf, QRL, Signal } from '@builder.io/qwik';
22
import { HAccordionRootImpl } from './accordion-root';
33
import { Accordion } from '@qwik-ui/headless';
44

5+
type InternalProps = {
6+
accordionItemComponent: typeof Accordion.Item;
7+
};
8+
59
export type AccordionRootProps = PropsOf<'div'> & {
610
/** If true, multiple items can be open at the same time. */
711
multiple?: boolean;
@@ -34,12 +38,10 @@ export type AccordionRootProps = PropsOf<'div'> & {
3438

3539
/** If true, the accordion is animated. */
3640
animated?: boolean;
37-
38-
accordionItemComponent: typeof Accordion.Item;
3941
};
4042

41-
export const HAccordionRoot: Component<AccordionRootProps> = (
42-
props: AccordionRootProps,
43+
export const HAccordionRoot: Component<AccordionRootProps & InternalProps> = (
44+
props: AccordionRootProps & InternalProps,
4345
) => {
4446
const { children: accordionChildren, accordionItemComponent, ...rest } = props;
4547

0 commit comments

Comments
 (0)