7.2.0 • Published 2 years ago

suomifi-icons v7.2.0

Weekly downloads
414
License
MIT
Repository
github
Last release
2 years ago

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.

7.2.0

2 years ago

7.0.0

2 years ago

7.1.0

2 years ago

7.0.1

2 years ago

6.5.0

2 years ago

6.4.0

2 years ago

7.0.0-beta.2

2 years ago

7.0.0-beta.0

2 years ago

7.0.0-beta.1

2 years ago

6.3.0

3 years ago

6.2.0

3 years ago

6.1.0

3 years ago

6.0.0

4 years ago

5.0.0

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.1.1

5 years ago

1.1.1-alpha.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.2-beta.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago