cyber-country-flag

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cyber-country-flag

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

14.6 kB

Total Files

6

Last publish

Collaborators

  • beautyfree