Home

Awesome

ceri-flag

webpack based - load only what you need - svg inline flags.
See ceri-icon if you need a svg inline icon.

Features:

supports:

If you need other free flag sets, let me know..

Demo

Install

npm install --save-dev ceri-flag

Usage

// webpack.config.js
Flags = require("ceri-flag")
...
module.exports = {
  ...
  plugins:[
    ...
    new Flags(["flg-gb","sq-de"])
    ...
  ]
  ...
}
window.customElements.define("ceri-flag", require("ceri-flag"))
<ceri-flag name="flg-gb"></ceri-flag>

For examples see dev/.

Props

Nametypedefaultdescription
nameString-(required) name of the icon
labelStringnamearia-label
sizeNumber(font-size)height of the icon in px
scaleNumber1size multiplier

Development

Clone repository.

npm install
npm run dev

Browse to http://localhost:8080/.

License

Copyright (c) 2016 Paul Pflugradt Licensed under the MIT license.