diff --git a/packages/dnb-eufemia/src/shared/types.tsx b/packages/dnb-eufemia/src/shared/types.tsx index feba420ec67..d008b4fa8e8 100644 --- a/packages/dnb-eufemia/src/shared/types.tsx +++ b/packages/dnb-eufemia/src/shared/types.tsx @@ -24,6 +24,9 @@ export type DataAttributeTypes = { // [property: `data-${string}`]: string } -export type DynamicElement
> = - | keyof JSX.IntrinsicElements - | React.FunctionComponent
+export type DynamicElement<
+ P = React.DetailedHTMLProps<
+ React.HTMLAttributes