@mcansh/custom-next-link
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

@mcansh/custom-next-link

A next.js link wrapper that renders a normal anchor tag with target="_blank" and rel="noopener external nofollow noreferrer" or a next link

usage

import { LinkProvider, Link } from '@mcansh/custom-next-link';

export default () => (
  <LinkProvider value="https://mcan.sh">
    <Link href="https://google.com">
      <a>Hello World</a>
    </Link>
  </LinkProvider>
);

//=> <a href="https://google.com" target="_blank" rel="noopener external nofollow noreferrer">Hello World</a>

/@mcansh/custom-next-link/

    Package Sidebar

    Install

    npm i @mcansh/custom-next-link

    Weekly Downloads

    1

    Version

    0.3.2

    License

    none

    Unpacked Size

    18.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • mcansh