1.0.2 • Published 3 years ago

round-flags v1.0.2

Weekly downloads
32
License
MIT
Repository
github
Last release
3 years ago

round-flags

round-flags - provides a round-shaped collection of svg format flags, you can use it with any library or framework you work with.

Collection of over 200 flags

Example with react

import React from 'react;
import { GB } from 'round-flags';

function Example () {
  return <img src={GB} />
}

Also you can import a flag by providing data.

import React from 'react;
import PropTypes from 'prop-types';
import * as images from 'round-flags';

function Example (props) {
  // props just a string 'UA'
  return <img src={images[props.UA]} />
}

Example.propTypes = {
  UA: PropTypes.string,
};

You can import a flag only providing ALPHA-2 code of country.

Example

import { US } from 'round-flags'; /// Flag of United States
import { ES } from 'round-flags'; /// Flag of Spain
1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago