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

@gemeente-denhaag/link

Package Overview
Dependencies
Maintainers
0
Versions
418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gemeente-denhaag/link

A Link component

  • 0.2.3-alpha.409
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
197
decreased by-74.51%
Maintainers
0
Weekly downloads
 
Created
Source

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

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

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/

FAQs

Package last updated on 05 Sep 2024

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