gatsby-plugin-superlink

    1.0.1 • Public • Published

    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

    // in your component
    import Superlink from 'gatsby-plugin-superlink';
     
    // uses gatsby link, by magic
    <p><Superlink to='/about-us'>foo</Superlink></p>
     
    // uses a href
    <p><Superlink to='https://pierre.io'>bar</Superlink></p>

    Install

    npm i gatsby-plugin-superlink

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.27 kB

    Total Files

    3

    Last publish

    Collaborators

    • pierrenel