@govuk-react/back-link

    0.9.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i @govuk-react/back-link

    DownloadsWeekly Downloads

    3,226

    Version

    0.9.0

    License

    MIT

    Unpacked Size

    25.1 kB

    Total Files

    17

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar