Skip to main content

Links

v.5.0.2

Installation

yarn add @mercell/link-react

Usage

Using the Link component requires installation like explained above then importing it like shown below.

import Link from '@mercell/link-react';
Live Editor
Result

Types, definitions, etc.

LinkProps
interface LinkProps {
href: string;
externalLink?: boolean;
inlineLink?: boolean;
}
NameTypeDefaultRequiredDescription
hrefstring-yesAn address to a page
externalLinkbooleanfalsenoBoolean to mark the link as an external link
inlineLinkbooleanfalsenoBoolean to mark the link as an inline link
noDefaultColorbooleanfalsenoSet default color to text-matisse