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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wmcadigital/ui-link

v0.1.0-alpha.2

Published

Links should be used when a users action won’t affect the website at all

Downloads

49

Readme

@wmcadigital/ui-link

Styles and behaviour for links, visited states and chevrons.

Installation

Using pnpm (monorepo/workspace):

pnpm add @wmcadigital/ui-link

Using npm:

npm install @wmcadigital/ui-link

Using yarn:

yarn add @wmcadigital/ui-link

What this package provides

  • SCSS source in src/styles/main.scss and compiled CSS at dist/styles/main.css.
  • Styling for anchor elements and utility classes:
    • .ds-link — primary link style (bold, underlined, uses --color-cta).
    • .ds-link--with-chevron — inline-flex link variant that positions a chevron icon.
    • .ds-link__chevron and modifiers (--left, --right, --down) — chevron icon sizing/placement.
    • .hvr-icon-hang — helper for a hoverable icon that shows a labelled affordance.
    • .collapse — simple collapse helper used with expand/collapse patterns.

This package is styling-first; it does not export JavaScript components. Import the CSS to apply these styles.

Usage

Basic link:

<a class="ds-link" href="/path">Read more</a>

Link with a right chevron:

<a class="ds-link ds-link--with-chevron" href="/path">
  Read more
  <svg class="ds-link__chevron ds-link__chevron--right" aria-hidden="true" viewBox="0 0 24 24">
    <!-- svg -->
  </svg>
</a>

Collapsible region trigger example:

<button class="hvr-icon-hang" aria-expanded="false" data-html-text="View more">
  <span class="hvr-icon">▾</span>
</button>
<div class="collapse">Hidden content</div>

Notes:

  • The base rule also targets plain a elements that don't already have a design-system class to help with consistency (see the a:not([class*='ds-']) selectors).
  • Colours and fonts follow the monorepo design tokens (--color-cta, --color-primary, etc.).

Accessibility

  • Mark chevron icons aria-hidden="true" and provide descriptive link text.
  • For expandable controls using .hvr-icon-hang, ensure aria-expanded is updated and visible labels are provided via data-html-text where required.

Development

Build from the repository root:

pnpm -w -r run build

See the monorepo README.md and DOCS/ for contributing and publishing guidelines.

# Link

Styles and behaviour for links, visited states and underlines.

## Usage

Use anchor elements with the provided classes to style links consistently.

link

Links should be used when a users action won’t affect the website at all

Usage

import { hello } from '@wmcadigital/ui-link';