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

@designsystem-se/af-angular

v34.0.3

Published

Angular Components for Digi Designsystem

Downloads

706

Readme

En byggkloss av ospecificerat märke. Illustration av typsnitt, färgstickor, datorer och mobiler. Skärmarna innehåller ikoner och inmatningsfält.

Kom igång

Installera designsystemet genom att köra en av följande rader

# React
npm install @designsystem-se/af-react @designsystem-se/af

# Angular
npm install @designsystem-se/af-angular @designsystem-se/af

# Inget ramverk
npm install @designsystem-se/af

Lägg till följande rader i projektets globala css-fil

@import '@designsystem-se/af/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css';
@import '@designsystem-se/af/dist/digi-arbetsformedlingen/fonts/src/fonts.css';

Det var allt! 🚀

Exempel

React

// App.tsx
import { DigiButton } from '@designsystem-se/af-react';
import { ButtonVariation } from '@designsystem-se/af';

export function App() {
  const handleClick = () => console.log('👋 Hallå Världen');
  return (
    <DigiButton afVariation={ButtonVariation.PRIMARY} onAfOnClick={handleClick}>
      Hälsa
    </DigiButton>
  );
}

Angular

// app.component.ts
import { Component } from '@angular/core';
import { DigiArbetsformedlingenAngularModule } from '@designsystem-se/af-angular';
import { ButtonVariation } from '@designsystem-se/af';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [DigiArbetsformedlingenAngularModule],
  templateUrl: './app.component.html'
})
export class AppComponent {
  buttonVariation = ButtonVariation.PRIMARY;
  handleClick() {
    console.log('👋 Hallå Världen');
  }
}
<!--app.component.html-->
<digi-button afVariation="buttonVariation" (afOnClick)="handleClick"
  >Hälsa</digi-button
>

Old School

<!--index.html-->
<!doctype html>
<html>
  <head>
    <link
      rel="stylesheet"
      href="node_modules/@designsystem-se/af/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css" />
    <link
      rel="stylesheet"
      href="node_modules/@designsystem-se/af/dist/digi-arbetsformedlingen/fonts/src/fonts.css" />
    <script
      type="module"
      src="node_modules/@designsystem-se/af/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js"></script>
  </head>
  <body>
    <digi-button af-variation="primary">Hälsa</digi-button>
    <script>
      let btn = document.querySelector('digi-button');
      btn.addEventListener('afOnClick', () => {
        console.log('👋 Hallå Världen');
      });
    </script>
  </body>
</html>

Bidra till Designsystemet

Är du nyfiken på att hjälpa till med att bygga ett av sveriges mest tillgängliga och flexibla designsystem? Say no more. ✨

Vi behöver hjälp med allt ifrån kod, design, tillgänglighetsarbete, copywriting och marknadsföring.

Kommunikation & Forum

⚠️ Observera: Dela inte känslig information eller personuppgifter. Allting i GitLab är tillgängligt för alla besökare. Vid övriga ärenden var god använd kontaktuppgifter som finns tillgängliga på dokumentationswebben.

Om designsystemet

Designsystemet är välbeprövat i myndighetsvärlden sen flera år tillbaka. Komponenterna visas flera miljoner gånger per månad till olika användare.


Team Designsystem @ Arbetsförmedlingen 2025