LinkText

An inline text hyperlink.

It implements the <a> element.

Styles

Import the styles within a Next.js custom app in pages/_app.js.
import "device-agnostic-ui/LinkText.css";

Props

Use any valid <a> props.

Examples

How to import.
import LinkText from "device-agnostic-ui/LinkText.mjs";
External link.
import LinkText from "device-agnostic-ui/LinkText.mjs";

const result = <LinkText href="https://reactjs.org">React</LinkText>;
Internal Next.js route link.
import LinkText from "device-agnostic-ui/LinkText.mjs";
import Link from "next/link";

const result = (
  <Link href="/" passHref>
    <LinkText>Home</LinkText>
  </Link>
);

Tags