Skip to content

GolosChain/react-country-flag

 
 

Repository files navigation

react-country-flag

React component for emoji/svg country flags.

NPM JavaScript Style Guide

Install

npm install --save react-country-flag

Usage

import React, { Component } from "react";

import ReactCountryFlag from "react-country-flag";

class Example extends Component {
    render() {
        return (
            <div>
                <ReactCountryFlag code="us" />
                <ReactCountryFlag code="us" svg />
                <ReactCountryFlag 
                    styleProps={{
                        width: '20px',
                        height: '20px'
                    }}
                    code="us"
                    svg
                />
            </div>
        );
    }
}

License

MIT © danalloway

About

React component for emoji/svg country flags.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • HTML 1.6%
  • CSS 0.2%