Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pierrenel/gatsby-superlink
- Owner: pierrenel
- Created: 2019-12-15T17:06:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T16:43:35.000Z (over 4 years ago)
- Last Synced: 2024-11-03T21:33:35.827Z (11 days ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```