@govuk-react/back-link

Styled anchor with left-pointing triangle, children rendered as text and optional click handler.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@govuk-react/back-link
Minified + gzip package size for @govuk-react/back-link in KB

Readme

BackLink

Import

  import BackLink from '@govuk-react/back-link';

Usage

Simple

import { BackLink } from 'govuk-react'

<BackLink>Back</BackLink>

With custom click handler

<BackLink onClick={this.myCustomFunction}>Back</BackLink>

With href attribute

<BackLink href='#'>Back</BackLink>

References:

Properties

Prop Required Default Type Description
children 'Back' string Text that will appear in the back link
onClick undefined func Custom function to run when the onClick event is fired

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.