0.2.1 • Published 4 years ago

angular-flagpack v0.2.1

Weekly downloads
9
License
-
Repository
-
Last release
4 years ago

Angular Flag Pack

A project made by Yummygum

Installation

npm install angular-flagpack -S

Declare module

import { AngularFlagpackModule } from 'angular-flagpack';

@NgModule({
  ...
  imports: [
    AngularFlagpackModule // add it here.
  ],
  ...
})

Use in your template:

<lib-angular-flagpack
  code="nl"
  size="m"
  gradient="top-down"
  [hasDropShadow]="true"
  [hasBorder]="true"
  [hasBorderRadius]="true">
</lib-angular-flagpack>

Or use with defaults

<lib-angular-flagpack code="528"></lib-angular-flagpack>

Available component options

keyvaluerequireddefaultformat
country codeStringtruenonesee all codes
sizeStringfalsel's', 'm' or 'l'
classNameStringfalse--
hasDropShadowbooleanfalsefalse-
hasBorderbooleanfalsetrue-
hasBorderRadiusbooleanfalsetrue-
gradientStringfalse'''top-down', 'real-linear' or 'real-circular'