Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pierrenel/gatsby-superlink

Gatsby plugin to switch between gatsby link and a href based on the incoming link
https://github.com/pierrenel/gatsby-superlink

Last synced: about 23 hours ago
JSON representation

Gatsby plugin to switch between gatsby link and a href based on the incoming link

Awesome Lists containing this project

README

        

# gatsby-superlink

Wraps `gatsby-link` and `a href` and switches between then based on the url in the `to` prop.

## Install

`npm install --save gatsby-plugin-superlink`

## How to use

```javascript
// in your component
import Superlink from 'gatsby-plugin-superlink';

// uses gatsby link, by magic

foo

// uses a href

bar


```