React circle flags (based on circle-flags)
npm install --save react-circle-flags
import React from 'react'
import { CircleFlag } from 'react-circle-flags'
export const SpanishFlag = () => <CircleFlag countryCode="es" height="35" />
import React from 'react'
import { CircleFlag } from 'react-circle-flags'
export const SpanishFlag = () => <CircleFlag countryCode="es" height="35" cdnUrl="https://magic-cdn.com/flags/" />
You can pass all the react's React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>
props to CircleFlag. 🚀
import React from 'react'
import { CircleFlagLanguage } from 'react-circle-flags'
export const EnglishFlag = () => <CircleFlagLanguage languageCode="en-us" height="35" />
Click here!
MIT © On The Edge IT Solutions