1.0.1 • Published 3 months ago

@digitransit-component/digitransit-component-traffic-now-link v1.0.1

Weekly downloads
54
License
(AGPL-3.0 OR EUPL...
Repository
github
Last release
3 months ago

@digitransit-component/digitransit-component-traffic-now-link

TrafficNowLink

Extends React.Component

A banner with blue caution Icon and arrow mark, original purpose is to act as a link to a page about current traffic information.

Examples

handleClick = (e, lang) => {
e.preventDefault();
window.location = 'www.digitransit.fi';
};
const lang = "fi"
<TrafficNowLink lang={lang} handleClick={this.handleClick}/>

handleClick

Required. Function to handle when the banner is clicked. Also for KeyDown events


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-traffic-now-link

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

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

3 months ago

1.0.0

5 months ago

0.2.1

9 months ago

0.2.3

8 months ago

0.2.2

9 months ago

0.2.0

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago