Git Product home page Git Product logo

country-flags's Introduction

VTEX Country Flags

A React component that renders country flags as SVG icons.

API

CountryFlag

This component receives the country code and renders that respective country's flag.

Props

Prop name Type Description
iso3 string The country code in ISO-3 format (e.g. BRA). Default: undefined
iso2 string The country code in ISO-2 format (e.g. BR). Default: undefined

Notice that you only need to pass either iso3 or iso2 prop, not both.

Example usage:

import { CountryFlag } from 'vtex.country-flags'

const Component = () => {
  return (
    // renders Brazil flag
    <CountryFlag iso3="BRA" />
  )
}

country-flags's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

country-flags's Issues

Add remaining flags for other countries

Missing countries list:

  • American Samoa (ASM)
  • Anguilla (AIA)
  • Antarctica (ATA)
  • Aruba (ABW)
  • Bermuda (BMU)
  • Bhutan (BTN)
  • British Indian Ocean Territory (IOT)
  • Canada (CAN) (#4)
  • Cayman Islands (CYM)
  • Central African Republic (CAF) (#4)
  • Christmas Island (CXR)
  • Cocos Islands (CCK)
  • Cook Islands (COK)
  • Curacao (CUW)
  • East Timor (TLS) (#4)
  • French Polynesia (PYF)
  • Greenland (GRL)
  • Guam (GUM)
  • Hong Kong (HKG)
  • Kosovo (XKX) (#4)
  • Macau (MAC)
  • Mayotte (MYT)
  • Montserrat (MSR)
  • Myanmar (MMR)
  • Netherlands Antilles (ANT)
  • New Caledonia (NCL)
  • Niue (NIU)
  • Northern Mariana Islands (MNP)
  • Pitcairn (PCN)
  • Reunion (REU)
  • Saint Barthelemy (BLM)
  • Saint Helena (SHN)
  • Saint Martin (MAF)
  • Saint Pierre and Miquelon (SPM)
  • Sint Maarten (SXM)
  • Svalbard and Jan Mayen (SJM)
  • Tokelau (TKL)
  • Turks and Caicos Islands (TCA)
  • Vatican (VAT)
  • Wallis and Futuna (WLF)
  • Western Sahara (ESH)

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.