Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@sb1/ffe-icons-react

Package Overview
Dependencies
Maintainers
4
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sb1/ffe-icons-react

React-komponenter for ffe-icons

Source
npmnpm
Version
100.9.0
Version published
Weekly downloads
270
-42.31%
Maintainers
4
Weekly downloads
 
Created
Source

@sb1/ffe-icons-react

Beskrivelse

Ikonkomponenter som bruker CSS mask-image for SVG-ikoner som kan farges med CSS. Sett ariaLabel for meningsbærende ikoner, utelat den for dekorative ikoner (skjules automatisk).

Installasjon

npm install --save @sb1/ffe-icons-react

Bruk

Full dokumentasjon: https://sparebank1.github.io/designsystem/

Importer CSS:

@import url('@sb1/ffe-icons/css/ffe-icons.css');

Eksempler

import { Icon } from '@sb1/ffe-icons-react';

// Med tilgjengelighetstekst
<Icon fileUrl="./icons/open/300/md/house.svg" ariaLabel="Hjem" />

// Dekorativt ikon (skjules fra skjermleser)
<Icon fileUrl="./icons/open/300/md/arrow-right.svg" />

// Med størrelse og fargeklasse
<Icon
    fileUrl="./icons/open/300/sm/star.svg"
    size="sm"
    className="ffe-text-color--vann"
    ariaLabel="Favoritt"
/>

Ikonsti-format

./icons/{variant}/{weight}/{size}/{icon-name}.svg
  • variant: open eller filled
  • weight: 300, 400, eller 500
  • size: sm, md, lg, eller xl

Tilgjengelighet

  • Sett ariaLabel for meningsbærende ikoner
  • Utelat ariaLabel for dekorative ikoner (setter automatisk aria-hidden="true")

Utvikling

npm install && npm run build && npm start

Lokal Storybook kjører på http://localhost:6006/.

FAQs

Package last updated on 11 Feb 2026

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