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: 4 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T16:43:35.000Z (about 5 years ago)
- Last Synced: 2025-02-15T15:28:00.108Z (5 months 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
```