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

@mijnservices/plan-card

v0.2.0

Published

Card component for plans in MijnServices, built on NL Design System architecture

Readme

@mijnservices/plan-card

npm

A fully clickable card component for linking to a plan, goal, or similarly structured piece of content. Part of mijnservices-components, built on NL Design System architecture.

Framework-agnostic: this ships as a standard Custom Element, so it works in plain HTML, React, Vue, Angular, or Svelte alike. A dedicated React wrapper is also included for a more idiomatic React experience.

Install

npm install @mijnservices/plan-card

Usage

Web component

import "@mijnservices/plan-card";
<mijnservices-plan-card href="/plannen/zelfstandig-wonen" date="Nog 2 dagen" date-time="2026-07-08">
  <span slot="domain">Wonen</span>
  <span slot="heading">Zelfstandig gaan wonen</span>
  <p>Voeg uw energiecontract toe voordat u verhuist.</p>
</mijnservices-plan-card>

React

import { PlanCard } from "@mijnservices/plan-card/react";

<PlanCard href="/plannen/zelfstandig-wonen" date="Nog 2 dagen" dateTime="2026-07-08">
  <span slot="domain">Wonen</span>
  <span slot="heading">Zelfstandig gaan wonen</span>
  <p>Voeg uw energiecontract toe voordat u verhuist.</p>
</PlanCard>;

CSS only

If you want to use your own markup with the component's styles:

import "@mijnservices/plan-card/css";
<div class="mijnservices-plan-card">
  <p class="mijnservices-plan-card__domain">Wonen</p>
  <p class="mijnservices-plan-card__heading">Zelfstandig gaan wonen</p>
</div>

Props / attributes

| Attribute | Type | Default | Description | | ------------ | ---------------------- | ----------- | -------------------------------------------------------------------------- | | href | string | '' | Destination link. The entire card becomes clickable, not just the arrow. | | aria-label | string | '' | Accessible label for the card's link. See accessibility note below. | | date | string | '' | Visible date/deadline text, e.g. "Nog 2 dagen". | | date-time | string | '' | Machine-readable ISO date passed to the underlying <time datetime>. | | appearance | 'default' \| 'plain' | 'default' | plain removes the card's background/clip decoration for a flatter style. |

Slots

| Slot | Purpose | | --------- | ------------------------------------------------ | | domain | Small label above the heading (e.g. a category). | | heading | The card's title. | | (default) | Body content below the heading. |

Accessibility

The whole card surface is clickable — a stretched link sits behind the entire card, not just the visible arrow icon. Because of this:

  • Always provide a specific aria-label describing the destination (e.g. "Ga naar plan: Zelfstandig gaan wonen"), rather than leaving it empty. Screen reader users navigating by links otherwise only hear a generic "link", with no indication of which plan it leads to.
  • Don't rely on the visible arrow or heading text alone to convey the link's purpose — the aria-label is what assistive technology actually announces.

Theming

This component uses Shadow DOM, so its styles are isolated and cannot be overridden with external CSS selectors. Theme it using CSS custom properties instead — see tokens.json for the full list, or the component's Storybook "Design Tokens" page for a copy-pasteable template. All tokens follow the pattern --mijnservices-plan-card-{property}, for example:

--mijnservices-plan-card-background-color
--mijnservices-plan-card-heading-font-size

Documentation

Live examples and the full design token reference: Storybook

License

EUPL-1.2