1.0.1 • Published 1 year ago

@digitransit-component/digitransit-component-icon v1.0.1

Weekly downloads
123
License
(AGPL-3.0 OR EUPL...
Repository
github
Last release
1 year ago

@digitransit-component/digitransit-component-icon

Icon

Icon renders predefined Svg icons as react component.

Parameters

  • $0 Object
    • $0.color
    • $0.img
    • $0.height
    • $0.width
    • $0.rotate

Examples

<Icon
   img="bus"       // Key of svg, required
   height={1}      // Height as em, optional
   width={1}       // Width as em, optional
   color="#007ac9" // Color of image, optional
   rotate={90}     // How many degrees to rotate image, optional
/>

This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @digitransit-component/digitransit-component-icon

Or install the digitransit-component module that includes it as a class:

$ npm install @digitransit-component/digitransit-component
1.0.1

1 year ago

1.0.0

2 years ago

0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago