All Projects → Yummygum → vue-flagpack

Yummygum / vue-flagpack

Licence: MIT license
Flagpack contains 260+ easily implementable flag icons to use in your design or code project.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-flagpack

Countries
Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
Stars: ✭ 1,365 (+3150%)
Mutual labels:  countries, flags
countriesNowAPI
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
Stars: ✭ 78 (+85.71%)
Mutual labels:  countries, flags
country-flags
A small package to convert a country code to the corresponding country flag emoji
Stars: ✭ 27 (-35.71%)
Mutual labels:  countries, flags
World countries
Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP and SQL formats, in multiple languages and with national flags included
Stars: ✭ 598 (+1323.81%)
Mutual labels:  countries, flags
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+230.95%)
Mutual labels:  countries, flags
Countrycode
🎯 Swift country and phone code Picker
Stars: ✭ 175 (+316.67%)
Mutual labels:  countries, flags
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+21.43%)
Mutual labels:  countries, flags
cleye
👁‍🗨 cleye — The intuitive & typed CLI development tool for Node.js
Stars: ✭ 235 (+459.52%)
Mutual labels:  flags
world-cities-mongodb
A free world cities database
Stars: ✭ 29 (-30.95%)
Mutual labels:  countries
countrynames
Utility library to turn country names into ISO two-letter codes
Stars: ✭ 55 (+30.95%)
Mutual labels:  countries
list-of-countries
List of all countries in different formats (ISO, tld, capital, language, population)
Stars: ✭ 22 (-47.62%)
Mutual labels:  countries
top-regional-repositories
🌍 The most-relevant repositories for all countries and many cities worldwide.
Stars: ✭ 18 (-57.14%)
Mutual labels:  countries
flag-icons
A beautiful svg + png + sass + css collection of 261 flags.
Stars: ✭ 61 (+45.24%)
Mutual labels:  countries
fastHistory
A python tool connected to your terminal to store important commands, search them in a fast way and automatically paste them into your terminal
Stars: ✭ 24 (-42.86%)
Mutual labels:  flags
cli
a lightweight and simple cli package
Stars: ✭ 12 (-71.43%)
Mutual labels:  flags
django-countries-plus
Django model & fixture representing all top level country data from Geonames.org
Stars: ✭ 40 (-4.76%)
Mutual labels:  countries
graphcountries
An easy to use GraphQL API to query country-related data for free and without restrictions
Stars: ✭ 61 (+45.24%)
Mutual labels:  flags
ld-scheduler
Schedule Launch Darkly flags on or off
Stars: ✭ 14 (-66.67%)
Mutual labels:  flags
socrates
PHP package to Validate and Extract information from National Identification Numbers.
Stars: ✭ 46 (+9.52%)
Mutual labels:  countries
database-of-embassies
Database of embassies and consulates. Download as CSV, no registration, public domain. Powered by Wikidata.
Stars: ✭ 33 (-21.43%)
Mutual labels:  countries

Flagpack

Flagpack contains 260+ flag icons to easily use within your code project. Flagpack is an open source project and available for JavaScript frameworks/libraries Angular, Vue and React.

Flagpack. 260+ easily implementable flag icons to use in your design or code project. Open Source. Available for Sketch, Figma, Angular, Vue, and React. www.flagpack.xyz. Made with love by Yummygum. Graphic showing a list with the flags of Argentina, Croatia, Estonia, Kenia, Netherlands, and Scotland.

View documentation on flagpack.xyz

vue-flagpack

Flagpack for Vue is created using Vue v2.5.11. The Flagpack component has not been tested for compatibility with older version of Vue.

Flagpack for Vue has been reported to not work with Vue 3. Adding support for Vue 3 has been added to the future plans of Flagpack for Vue.

Installation

npm install vue-flagpack

Usage

As a plugin

import Vue from 'vue'
import Flag from 'vue-flagpack'

Vue.use(Flag, {
  name: 'Flag'
})

In your template:

<template>
  <vue-flagpack code="NL" />
</template>

Import straight away

import { Flag } from 'vue-flagpack'

Vue.component('flag-nl', {
  components: {
    Flag
  },
  template: `
    <Flag code="NL" />
  `
})

Via UNPKG network

<script src="https://unpkg.com/vue-flagpack@latest/dist/vue-flag-rollup.cjs.js"></script>
<script>
const instance = new Vue({
  el: '#app',
  components: {
    'Flag': Flag.Flag
  },
})

// or
instance.use(Flag)
</script>

Available plugin options

Key Value Required Default
name String false vue-flagpack

Available component configurations — Props

Key Value Required Default Format
code String false 'NL' See all codes
size String false 'L' 'S', 'M' or 'L'
className String false - -
hasDropShadow Boolean false false -
hasBorder Boolean false true -
hasBorderRadius Boolean false true -
gradient String false '' 'top-down', 'real-linear' or 'real-circular'

Build Dist

# install dependencies
npm install

# build for prod
npm run build

# build with watcher for dev
npm run dev

Releasing

To release a new version you'll need to make sure all changes commits are done and pushed. After that you'll need to decide which release type you want to use. The release types are; patch (0.0.1), major (0.1.0), or minor (1.0.0).

npm version <release_type>

This will update the version number in the package.json, and will add a git tag automatically. Next you'll need to push the git tag to the remote.

git push --tags origin main

After that you'll need to publish to npm.

npm publish

When you're confident with the release, make sure the version tag is also released at GitHub.

Support

Frequently Asked Questions

Documentation

Releases

You can find a changelog of Flagpack's releases on the Releases page on GitHub.

Contribute

If you're interested in contributing to this project, great! Please see the contributing document.

License

Flagpack is an open source project published under a MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].