npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gemeente-denhaag/link

v4.0.1

Published

A Link component

Downloads

9,546

Readme

Navigation Link

npm (scoped) GitHub Workflow Status (branch)

Figma Design

Links are used as navigational elements. They may appear on their own, within a sentence or paragraph, or directly following the content.

When to use

Links are used as navigational elements and can be used on their own or inline with text. They provide a lightweight option for navigation but like other interactive elements, too many links will clutter a page and make it difficult for users to identify their next steps. This is especially true for inline links, which should be used sparingly.

Use links when you want users to:

  • Navigate to a different page within the website
  • Navigate to an entirely different site
  • Link to emails or phone numbers

Alternatives and related components

Use Button for actions that don’t appear within or directly following a sentence.

Navigate to Button

Anatomy

The navigation link consists of:

  1. Label: communicates what is being linked to
  2. Icon (optional): this icon gives the label extra guidance

(Interactive) states

The navigation link contains the states normal, hover, disabled and focus.

Design properties

Typography

  • Label: TheSans/md/400

Color

  • Label: text color Blue/3
  • Icon: svg color Blue/3

Interactive states

  • Hover: label text color Blue/4, icon svg color Blue/4
  • Disabled: label text color Grey/2, icon svg color Grey/2
  • Focus: label text color Blue/4, icon svg color Blue/4, border color Ocher/5

Structure

  • Label: padding-top and padding-bottom 8px
  • Icon: height and width 20px
  • Icon-left: padding-right 8px
  • Icon-right: padding-left 8px

Best practices

Buttons versus navigation links

Navigation links are used primarily for navigation, and usually appear within or directly following a sentence.

Buttons are used primarily for actions, such as “Add”, “Close”, “Cancel”, or “Save”. Plain buttons, which look similar to links, are used for less important or less commonly used actions, such as “view settings”.

Do's

Navigation links should:

  • Be placed at the end of sentences where possible
  • Clearly explain where the link will take you to
  • Front-load the most relevant keyword
  • Be understandable out of context

Don'ts

Navigation links should:

  • Never use a button in place of a link
  • Not use vague or generic labels for links
  • Not open internal link in a new tab

References

https://www.interaction-design.org/literature/article/tips-for-better-hyperlink-ux https://blog.prototypr.io/a-guide-to-designing-perfect-links-in-ux-414558f35730 https://uxplanet.org/dos-and-don-ts-of-web-design-8c9d6a5de7c6 https://www.nngroup.com/articles/writing-links/