Nearsighted Prank Master

    react-circle-flags
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.17 • Public • Published

    react-circle-flags

    React circle flags (based on circle-flags)

    NPM JavaScript Style Guide codecov Node.js CI

    Install

    npm install --save react-circle-flags

    Usage

    import React from 'react'
    import { CircleFlag } from 'react-circle-flags'
    
    export const SpanishFlag = () => <CircleFlag countryCode="es" height="35" />

    With custom CDN

    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. 🚀

    Docs && Gallery

    Click here!

    License

    MIT © tnovau

    Install

    npm i react-circle-flags

    DownloadsWeekly Downloads

    5,183

    Version

    0.0.17

    License

    MIT

    Unpacked Size

    11.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • tnovau