Link
The <Link />
component extends the <a>
tag.
It includes the prop isExternal
, which will add the target="blank"
and rel="noopener noreferrer"
attributes.
This helps prevent cross-origin security issues when opening a new page.
Insired by Chakra UI's Link component.
import { Link } from 'minerva-ui';
External Link
Props
These are props related to the Link component.
Name | Type | Is Required | Default | Description |
---|---|---|---|---|
href | string | optional | none | Url for link |
isExternal | boolean | optional | none | Opens link in new tab |