We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf6b5b commit c52e21fCopy full SHA for c52e21f
src/types.ts
@@ -16,7 +16,9 @@ export type ElementPropsWithElementRef<T = HTMLDivElement> = React.HTMLProps<T>
16
elementRef?: ElementRef<T>;
17
};
18
19
-export type ElementRenderer<T = HTMLDivElement> = React.FC<ElementPropsWithElementRef<T>>;
+export type ElementRenderer<T = HTMLDivElement> = React.FC<
20
+ React.PropsWithChildren<ElementPropsWithElementRef<T>>
21
+>;
22
23
export type ElementPropsWithElementRefAndRenderer<T = HTMLDivElement> = React.HTMLProps<T> & {
24
0 commit comments