Socket
Book a DemoInstallSign in
Socket

@slice-and-dice/govuk-react-back-link

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slice-and-dice/govuk-react-back-link

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

0.7.1
latest
npmnpm
Version published
Maintainers
8
Created
Source

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:

  • https://github.com/alphagov/govuk-frontend/tree/master/src/components/back-link

Properties

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

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.