@socialgouv/react-departements

3.0.0 • Public • Published

React Departements

🧹Une carte de France où certains departements peuvent être colorés.

Gitlab Master Build Status Travis Build Status License: Apache-2.0 Npm version
Npm banner





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

Prop type usage default
color string couleur par défaut d'un département #74B4FF
highlightColor string couleur du highlight #b3ff75
departements array liste 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

/@socialgouv/react-departements/

    Package Sidebar

    Install

    npm i @socialgouv/react-departements

    Weekly Downloads

    11

    Version

    3.0.0

    License

    Apache-2.0

    Unpacked Size

    804 kB

    Total Files

    11

    Last publish

    Collaborators

    • revolunet
    • socialgroovybot