An open API service indexing awesome lists of open source software.

https://github.com/polgubau/flags

A react library for displaying fancy flags as components with metadata and multiple customization options
https://github.com/polgubau/flags

flags library react svg

Last synced: 3 months ago
JSON representation

A react library for displaying fancy flags as components with metadata and multiple customization options

Awesome Lists containing this project

README

          

# **React Beauty Flags**

**React Beauty Flags** is a simple and elegant collection of over 250 flags from around the world, designed with a modern and user-friendly aesthetic. Perfect for your React projects, these flags include countries, regions, cities, historical symbols, and more.

## **Features**

- 🌍 Over 250 beautifully designed flags
- 📦 Lightweight and easy to integrate
- 🎨 Simple, modern, and consistent design
- 🛠️ Fully customizable and open source

## **Installation**

```bash
npm install react-beauty-flags

```

## **Usage**

```jsx
import { Flag } from "react-beauty-flags"

function App() {
return (






)
}

export default App
```

### **Props**

- **`code`** (string): The ISO code of the flag to display.
- **`size`** (number | string, optional): Set the flag's width (height adjusts automatically).

All native svg's props can also be passed.

## **Flags Included**

React Beauty Flags includes:

- Country flags
- Regional flags
- City flags
- Historical
- Symbolic flags

For a complete list, visit [Flags Directory](https://flags.polgubau.com/).

## **Contributing**

Contributions are welcome! If you find a bug or have a flag design to add, feel free to open an issue or submit a pull request.

## **Author**

Created by [Pol Gubau Amores](https://polgubau.com/).

## **License**

This project is open source under the MIT License.

## **Links**

- 🌐 [Website](https://flags.polgubau.com/)
- 📦 [npm Package](https://www.npmjs.com/package/react-beauty-flags)
- 🐙 [GitHub Repository](https://github.com/PolGubau/flags)

---

Hope you enjoy using React Beauty Flags! 🚀