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

@dictu/page-header

v2.0.0

Published

Footer CSS component.

Downloads

163

Readme

De page-header component toont de hoofding van het Dictu Design Systeem.

Gebruik deze component

Je kunt de CSS zo in je project installeren:

npm install --save-dev @dictu/design-tokens

Je kunt de CSS uit node_modules/ importeren:

<link
  rel="stylesheet"
  href="node_modules/@dictu/design-tokens/dist/page-header.css"
/>

Als je CSS imports gebruikt vanuit JavaScript:

import "@dictu/design-tokens/dist/page-header.css";

Richtlijnen

  • Gebruik altijd de .dictu-page-header class voor de hoofding.
  • Gebruik semantische HTML: <header> voor de hoofdcontainer.
  • Voeg een lang attribuut toe om de taal aan te geven.
  • Zorg voor goede focus-states en toetsenbordnavigatie voor alle interactieve elementen.

Voorbeeldgebruik

<header class="dictu-page-header" lang="nl">
  <div class="dictu-page-container">
    <div class="dictu-logo">
      <div class="dictu-logo__image">
        <svg
          xmlns="http://www.w3.org/2000/svg"
          viewBox="0 -12 44 88"
          role="img"
        >
          <title>Logo Rijksoverheid</title>
          <!-- SVG content -->
        </svg>
      </div>
      <div class="dictu-logo__text">
        <span class="dictu-logo__title">Dictu</span>
        <span class="dictu-logo__subtitle"
          >Ministerie van Economische Zaken</span
        >
      </div>
    </div>
  </div>
</header>

CSS Klassen

  • .dictu-page-header — hoofdcontainer voor de hoofding
  • .dictu-page-container — interne container voor de inhoud
  • .dictu-logo — container voor het logo en tekst

Design Tokens / CSS-variabelen

De component gebruikt design tokens voor kleuren, spacing, etc. Zie proprietary/design-tokens/src/components/page-header.tokens.json voor een overzicht van beschikbare tokens. Voorbeeld:

.dictu-page-header {
  --govnl-header-background-color: transparent;
  --govnl-header-padding-block-end: 0;
  --govnl-header-container-max-inline-width: 100%;
  --govnl-header-container-padding-inline: 1rem;
  /* ... */
}

Toegankelijkheid

Varianten

PageHeader (Standaard)

De standaard page-header component met logo en tekst.

export const PageHeader = {
  render: () => {
    const header = document.createElement("header");
    header.className = "dictu-page-header";
    const container = createContainer();

    header.appendChild(container);

    return header;
  },
};

Logo Configuratie

Het logo binnen de page-header kan worden geconfigureerd met:

  • Titel: De hoofdtitel van de organisatie
  • Ondertitel: De subtitel of afdeling
  • SVG Logo: Het officiële Rijksoverheid logo

Logo voorbeeld:

const logo = {
  title: "Dictu",
  subtitle: "Ministerie van Economische Zaken",
  svg: "<!-- Rijksoverheid SVG content -->",
};

Responsief Gedrag

De component past zich automatisch aan verschillende schermgroottes aan:

  • Desktop: Standaard logo centrering
  • Tablet (max-width: 48em): Aangepaste logo positie
  • Mobiel (max-width: 20em): Compacte logo weergave

Styling

De styling wordt verzorgd door de page-header CSS en importeert automatisch de benodigde child components:

  • .dictu-page-header
  • .dictu-page-container
  • .dictu-logo

Plus alle gerelateerde klassen van logo en page-container components.

Licentie

EUPL-1.2