Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flag-icon-css

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flag-icon-css

> A curated collection of all country flags in SVG — plus the CSS for easier integration. See the [demo](https://flagicons.lipis.dev).

  • 4.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is flag-icon-css?

The flag-icon-css npm package provides a collection of flag icons using CSS for easy integration into web projects. It allows developers to display country flags by simply adding appropriate CSS classes to HTML elements.

What are flag-icon-css's main functionalities?

Display a country flag

This feature allows you to display a country flag by adding the `flag-icon` class along with the specific country code class (e.g., `flag-icon-us` for the United States) to an HTML element.

<span class="flag-icon flag-icon-us"></span>

Change flag size

You can change the size of the flag by adding size-specific classes such as `flag-icon-lg` for large flags. This allows for flexible design adjustments.

<span class="flag-icon flag-icon-us flag-icon-lg"></span>

Square flag icons

This feature allows you to display square versions of the flags by adding the `flag-icon-squared` class. This is useful for design consistency in certain layouts.

<span class="flag-icon flag-icon-us flag-icon-squared"></span>

Other packages similar to flag-icon-css

FAQs

Package last updated on 15 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc