Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-link

Package Overview
Dependencies
Maintainers
1
Versions
693
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-link

An enhanced Link component for Gatsby sites with support for resource prefetching

  • 1.0.0-alpha11-alpha.68e8f9a1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
158K
decreased by-38.9%
Maintainers
1
Weekly downloads
 
Created

What is gatsby-link?

The gatsby-link package is a part of the Gatsby framework, which is used to create fast, modern websites with React. The gatsby-link package specifically provides a Link component that enables navigation between different pages in a Gatsby site. It leverages the power of React Router and adds enhancements for preloading linked resources, making navigation faster and smoother.

What are gatsby-link's main functionalities?

Basic Link

This feature allows you to create a basic link to another page within your Gatsby site. The 'to' prop specifies the path to navigate to.

<Link to="/about/">About</Link>

Active Link Styling

This feature allows you to apply a specific class to the link when the current page matches the link's destination. The 'activeClassName' prop specifies the class to apply.

<Link to="/about/" activeClassName="active">About</Link>

Partially Active Link

This feature allows you to apply active styling to links that match a part of the current URL. The 'partiallyActive' prop is set to true to enable this behavior.

<Link to="/blog/" partiallyActive={true}>Blog</Link>

Preloading Links

This feature allows you to preload the linked page's resources when the link is rendered. The 'preload' prop is set to true to enable preloading.

<Link to="/contact/" preload={true}>Contact</Link>

Other packages similar to gatsby-link

Keywords

FAQs

Package last updated on 12 Jan 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc