0.7.1 • Published 3 years ago

@slice-and-dice/govuk-react-link v0.7.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Link

Import

  import Link from '@govuk-react/link';

Usage

Simple

<Link href="/some/page">Example</Link>

It is possible to use this component to style a link from react-router, or reach-router as follows:

import { Link as RouterLink } from 'react-router-dom';

<Link as={RouterLink} to="destination">Router example</Link>

NB if no link destination is set then the link styling will not be applied

References

Properties

PropRequiredDefaultTypeDescription
childrentrue | node | link contents
mutedfalseboolshow link in a "muted" (grey) style
noVisitedStatefalseboolensure there is no "visited" style
textColourfalseboolensure link is shown in plain text colour