0.1.10 • Published 6 years ago
angular-flag-pack v0.1.10
Angular Flag Pack
A project made by Yummygum
Installation
npm install angular-flag-pack -SDeclare module
import { FlagComponent } from 'angular-flag-pack'
@NgModule({
...
declarations: [
FlagComponent
],
imports: [
BrowserModule, // is required
],
...
})Use in your template:
<flag
code="nl"
size="m"
gradient="top-down"
[dropshadow]="true"
[hasBorder]="true"
[hasBorderRadius]="true">
</flag>Available component options
| key | value | required | default | format |
|---|---|---|---|---|
| country code | String | true | none | see all codes |
| size | String | false | l | 's', 'm' or 'l' |
| className | String | false | - | - |
| dropshadow | boolean | false | false | - |
| hasBorder | boolean | false | true | - |
| hasBorderRadius | boolean | false | true | - |
| customBorderRadius | String | false | - | - |
| gradient | String | false | '' | 'top-down', 'real-linear' or 'real-circular' |