Skip to Content

Link

This component renders a link. Depending on your routing library, you need to provide the appropriate Link component and the corresponding to or href prop. For Next.js, use the next/link component, and for React Router, use the react-router component.

Usage

Next.js

import { Link } from '@abbyyproduct/ui/components/link'; import { default as NLink } from 'next/link'; <Link as={NLink} to="/dashboard"> Dashboard </Link>;

React Router

import { Link } from '@abbyyproduct/ui/components/link'; import { Link as RRLink } from 'react-router'; <Link as={RRLink} to="/dashboard"> Dashboard </Link>;

Examples

Default

Last updated on