Repository URL to install this package:
|
Version:
3.0.6-working.1 ▾
|
import { ReactNode } from 'react';
export interface LinkRenderProp {
(props?: LinkProps): ReactNode;
}
/**
* PROPS
*/
export interface LinkProps {
className?: string;
activeClassName?: string;
text?: string;
children?: ReactNode;
/**
* @todo @requires href|to|link|url|onClick
*
* Have to use any one of, not multiple
* since below are the props are doing same job
* this is created for only user-friendly
*/
href?: string;
to: string;
link?: string;
url?: string;
onClick?: Function;
/**
* used to set the prefix for the url
* will be very useful the when the url has relative url
*/
urlBase?: string;
target?: string;
/**
* used to set role="nofollow"
* https://support.google.com/webmasters/answer/96569?hl=en
*/
nofollow?: boolean;
shouldNotFollow?: boolean;
dataQa?: string;
/**
* Reusable renderProps
*/
renderLink?: LinkRenderProp;
renderChildren?: LinkRenderProp;
}