Giter Site home page Giter Site logo

flag-icons's Introduction

<flag-icons>

Published on webcomponents.org Travis build GitHub release

Demo and API docs

flag-icons is an iconset that allows you to easily display flags on you application/website.

It features 195 flat icons with rounded corners, that can be useful if you want to allow the user to change the language in you internationalized application.

Note: the credits for the original flags go to Muharrem Şenyıl.
I just ported them to SVG and then to an iconset.

Installation

bower install --save Dabolus/flag-icons

Usage

Using an iconset is extremely simple. These are the steps you need to follow:

  1. Load the iconset:
    <link rel="import" href="../bower_components/flag-icons/flag-icons.html">
  2. Insert your icon using iron-icon
    <iron-icon icon="flag:gb"></iron-icon>
  3. Done!

The flags can also be used inside a paper-icon-button.

Example with normal iron-icons:

<iron-icon icon="flag:af"></iron-icon>
<iron-icon icon="flag:al"></iron-icon>
<iron-icon icon="flag:dz"></iron-icon>

Example with paper-icon-buttons:

<paper-icon-button icon="flag:ad"></paper-icon-button>
<paper-icon-button icon="flag:ag"></paper-icon-button>
<paper-icon-button icon="flag:ar"></paper-icon-button>

flag-icons's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flag-icons's Issues

Missing flag icons

The description says there are 195 flags, as per the original iconset.
However, the flag-icons.html file defines only 70.

Some common language flags, including France.png and Spain.png (languages I use in my application), are defined in the original flags_2.zip from Muharrem Şenyıl, but do not appear in SVG.

Is there any chance these could be added please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.