UNPKG

@fremtind/jkl-core

Version:
8 lines (7 loc) 525 B
import React from "react"; import { PolymorphicPropsWithRef } from "../polymorphism"; export type LinkProps<ElementType extends React.ElementType> = PolymorphicPropsWithRef<ElementType, { external?: boolean; }>; export type LinkComponent = <ElementType extends React.ElementType = "a">(props: LinkProps<ElementType>) => React.ReactElement | null; export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;