@fremtind/jkl-core
Version:
Jøkul core styles
9 lines (8 loc) • 555 B
TypeScript
import React from "react";
import { PolymorphicPropsWithRef } from "../polymorphism";
export type NavLinkProps<ElementType extends React.ElementType> = PolymorphicPropsWithRef<ElementType, {
active?: boolean;
back?: boolean;
}>;
export type LinkComponent = <ElementType extends React.ElementType = "a">(props: NavLinkProps<ElementType>) => React.ReactElement | null;
export declare const NavLink: React.ForwardRefExoticComponent<Omit<NavLinkProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;