@datalayer/core
Version:
[](https://datalayer.io)
21 lines (20 loc) • 852 B
TypeScript
import React from 'react';
export interface NavigationLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
to: string;
replace?: boolean;
state?: any;
}
/**
* Navigation link component that works with any routing solution
*/
export declare const NavigationLink: React.ForwardRefExoticComponent<NavigationLinkProps & React.RefAttributes<HTMLAnchorElement>>;
/**
* Compatibility export for react-router-dom Link
* @deprecated Use NavigationLink
*/
export declare const Link: React.ForwardRefExoticComponent<NavigationLinkProps & React.RefAttributes<HTMLAnchorElement>>;
/**
* Compatibility export for react-router-dom NavLink
* @deprecated Use NavigationLink with custom styling
*/
export declare const NavLink: React.ForwardRefExoticComponent<NavigationLinkProps & React.RefAttributes<HTMLAnchorElement>>;