diff --git a/src/PrismicLink.tsx b/src/PrismicLink.tsx index bc601e4..69e664c 100644 --- a/src/PrismicLink.tsx +++ b/src/PrismicLink.tsx @@ -142,9 +142,13 @@ const defaultExternalComponent = "a"; * link is internal or external. */ export const PrismicLink = < - InternalComponent extends string | React.ComponentType, - ExternalComponent extends string | React.ComponentType, - LinkResolverFunction extends prismicH.LinkResolverFunction, + InternalComponent extends + | string + | React.ComponentType = typeof defaultInternalComponent, + ExternalComponent extends + | string + | React.ComponentType = typeof defaultExternalComponent, + LinkResolverFunction extends prismicH.LinkResolverFunction = prismicH.LinkResolverFunction, >( props: PrismicLinkProps< InternalComponent,