@semantic-icons/circle-flags
v0.9.0
Published
`@semantic-icons/circle-flags` helps developers to use [Circle flags](https://hatscripts.github.io/circle-flags) inside [Angular](https://angular.dev) projects.
Downloads
361
Maintainers
Readme
@semantic-icons/circle-flags
@semantic-icons/circle-flags
helps developers to use Circle flags inside Angular projects.
Supported versions
| @semantic-icons/circle-flags | Angular | Circle-flags | | ---------------------------- | --------- | ------------ | | 0.x.x | >= 17.1.0 | 1.0.0 |
Usage
First, install @semantic-icons/circle-flags
from npm:
npm install @semantic-icons/circle-flags
Now each icon can be imported individually as an Angular component:
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
import { SvgFrFlagIcon } from '@semantic-icons/circle-flags';
@Component({
selector: 'app-home-page',
standalone: true,
imports: [SvgFrFlagIcon],
template: `
<svg-fr-flag-icon class="size-36" />
`,
styles: ``,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class HomePageComponent {}
The regular icons can be imported from @semantic-icons/circle-flags
, the other icons can be imported from @semantic-icons/circle-flags/other
, the language icons can be imported from @semantic-icons/circle-flags/language
.
Icons use the Angular naming convention and are always prefixed with the word svg
and suffixed with the words flag icon
.
License
MIT © 2024-2024 Khalil LAGRIDA