0.1.14 • Published 5 years ago

vue-flaggy v0.1.14

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Installation

npm install vue-flaggy

# OR

yarn add vue-flaggy

Global Import

import { VueFlaggy } from 'vue-flaggy'

Vue.component('VueFlaggy', VueFlaggy)

Component Import

<template></template>

<script>
  import { VueFlaggy } from 'vue-flaggy'

  export default {
    components: {
      VueFlaggy
    }
  }
</script>

Usage

<vue-flaggy country="ph" size="small" :square="true"></vue-flaggy>

Props

PropertyTypeDescriptionDefault
countryStringAn ISO 3166-1-alpha-2 country code.'ph'
sizeString'small', 'medium', 'large''small'
squareBooleanShows a square flag.false

Roadmap

  • Width and height of the flag container must adjust automatically depending on the SVG's width and height. Right now, a square: false flag still uses an n x n ratio.
  • A select component that shows all the flags and returns the selected country code.

Contributing

Contributions are welcome! 🎉 When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago