Constructor
new Link()
This component generates an anchor tag. Instead of doing a browser page load, it will go to the next page via AJAX. Analytics scripts will be fired correctly (and if not, it's a bug)
import { Link } from '@quintype/components';
<Link href="/section/story-slug" otherLinkAttribute="value">Text here</Link>
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
href |
string | Yes | ||
externalLink |
bool | No | ||
callback |
func | No | ||
navigateTo |
func | No | @private | "navigateToImpl" |
preventDefault |
func | No | @private | "function preventDefaultImpl(e) {\n e.preventDefault();\n e.stopPropagation();\n}" |
disableAjaxLinks |
bool | No | @private | "global.disableAjaxLinks || global.disableAjaxNavigation" |