Socket
Book a DemoInstallSign in
Socket

suomifi-icons

Package Overview
Dependencies
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suomifi-icons

Suomi.fi icons as accessible React components.

7.6.0
latest
Source
npmnpm
Version published
Maintainers
5
Created
Source

DVV suomifi-icons

Suomi.fi icons as accessible React components.

The library consists of five icon categories:

  • Base icons
  • Illustrative icons
  • Doctype icons
  • Component icons
  • Logo icons

Usage

The icons can be used simply by importing the desired icon components and using them in your code like any other React component.

import { IconArchive } from 'suomifi-icons';

<IconArchive color="green" mousePointer />;

Different icon categories have slightly varying APIs based on their intended use and styling possibilities:

Base icons API

Base icons are the most commonly used icon set. Their color and size can be customized via props. By default the color value is set to currentColor, so the icons inherit the current font color.

PropertyProperty typeDescription
classNamestringCustom classname to extend or customize
ariaLabelstringAria-label for SVG, undefined hides SVG from screen reader
mousePointerbooleanShow mouse cursor as hand-pointer
colorstringCustom fill color
fillstringCustom fill color, takes precedence over color if both are provided

Illustrative icons API

Illustrative icons are 2-color icons that can be customized to fit the required color scheme.

PropertyProperty typeDescription
classNamestringCustom classname to extend or customize
ariaLabelstringAria-label for SVG, undefined hides SVG from screen reader
mousePointerbooleanShow mouse cursor as hand-pointer
baseColorstringCustom base color
highlightColorstringCustom highlight color

Logo icons API

Logo icons contains variations of the Suomi.fi logo.They offer only limited customisation options.

PropertyProperty typeDescription
classNamestringCustom classname to extend or customize
ariaLabelstringAria-label for SVG, undefined hides SVG from screen reader
mousePointerbooleanShow mouse cursor as hand-pointer

Doctype icons API

Doctype icons portray different document types.

PropertyProperty typeDescription
classNamestringCustom classname to extend or customize
ariaLabelstringAria-label for SVG, undefined hides SVG from screen reader
mousePointerbooleanShow mouse cursor as hand-pointer

Versioning

This repository uses semantic versioning (https://semver.org/).

  • Major: Changes to the APIs or changes that result in visible changes in the existing icons.
  • Minor: Addition of new icons, or other non-breaking changes.
  • Patch: Any other changes that don't affect how the components are or can be used.
npm install suomifi-icons

or

yarn add suomifi-icons

⌨️ Development

See DEVELOPMENT.md.

FAQs

Package last updated on 08 May 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.