0.7.1 • Published 3 years ago
@slice-and-dice/govuk-react-back-link v0.7.1
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
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 |
0.7.1
3 years ago