@entur/icons
TypeScript icon, indicating that this package has built-in type declarations

7.11.1 • Public • Published

Icons

This package contains the icon components.

💡 Looking for the documentation?

Installation

npm install @entur/icons
# or if you are using Yarn:
yarn add @entur/icons

Usage

import { AddIcon } from '@entur/icons'; // Import specific icon

<AddIcon />;

Please refer to the documentation for usage information.

Development

This package contains all SVG files, as well as a script to create optimized React components from those SVG files.

If you're adding an icon, please add the SVG file to the appropriate svg/ folder. Make sure you give it a unique name, and make sure it looks correct in a browser after exporting it. Remember to add the icon-name in bin/build.js if it is a partner-icon.

If you're changing an existing icon, just update the existing SVG file with the new source code.

Unlike most other packages in our design system, this one doesn't use DTS-CLI or TypeScript. This is because DTS-CLI doesn't support the tools we need to optimize our SVG files. Instead, we've opted for configuring Rollup directly.

Readme

Keywords

none

Package Sidebar

Install

npm i @entur/icons

Weekly Downloads

3,074

Version

7.11.1

License

EUPL-1.2

Unpacked Size

1.74 MB

Total Files

9

Last publish

Collaborators

  • oysval
  • vages
  • martinbjerkeengen
  • enturas
  • kentandersen
  • testower
  • wfeiring
  • magnusrand
  • carljoachim
  • tysseng-entur
  • frankwaldal
  • ceciliehrr
  • phun-ky