Giter VIP home page Giter VIP logo

react-departements's Introduction

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

react-departements's People

Contributors

douglasduteil avatar renovate-bot avatar revolunet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.