Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Liquid-JS/nxt-flags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nxt-flags

GitHub license npm scope

Angular component to show country flags.

Demo

Docs

Install

Install the package with NPM:

$ npm install nxt-flags

Import the module to app.module.ts:

import { FlagsModule } from 'nxt-flags';

@NgModule({
    ...
    imports: [
        ...,
        FlagsModule,
        ...
    ],
    ...
})

Add this lines to angular.json:

{
    ...
    "assets": [
        ...,
        {
            "glob": "**/*",
            "input": "./node_modules/nxt-flags/assets/flags",
            "output": "./assets/flags"
        }
    ].
    ...
}

Usage

Use the tag nxt-flag with attribute country="xx" (where xx is the ISO 3166-1-alpha-2 code of a country):

<nxt-flag country="br"></nxt-flag>

Optional attributes

attribute options default description
size 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 48 sets the flag width
format 'none', 'round', 'square' 'none' sets the flag format

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 89.2%
  • JavaScript 5.5%
  • HTML 4.6%
  • SCSS 0.7%