3.0.0 • Published 4 years ago

@socialgouv/react-departements v3.0.0

Weekly downloads
21
License
Apache-2.0
Repository
-
Last release
4 years ago

Installation

$ npm install @socialgouv/react-departements
# or
$ yarn add @socialgouv/react-departements

# `react@16+` and `prop-types@15+` must be installed
$ yarn add react prop-types

Usage

import France from "react-departements";

<France departements={[75, 89, 21, 33, 47, 74, "2a", 976]} />;

See example/src.

Props

Proptypeusagedefault
colorstringcouleur par défaut d'un département#74B4FF
highlightColorstringcouleur du highlight#b3ff75
departementsarrayliste des départements à highlighter[]

Source

Le fond de carte est issu de wikimedia et distribué sous licence Creative Commons Attribution-Share Alike

Release policy

Auto

Trigger a custom build on Travis (in the "More options" right menu) on the master branch with a custom config:

env:
  global:
    - RELEASE=true
3.0.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago