0.7.1 • Published 3 years ago

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

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

BackLink

Import

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

Usage

Simple

<BackLink>Back</BackLink>

With custom click handler

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

With href attribute

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

References:

Properties

PropRequiredDefaultTypeDescription
children'Back'stringText that will appear in the back link
onClickundefinedfuncCustom function to run when the onClick event is fired