On this page
Angular Icons Component
Official Angular component for CoreUI Icons and CoreUI Icons PRO.
```bash ng add @coreui/icons-angular ```
```bash npm install @coreui/icons@3 @coreui/[email protected] ```
<svg [cIcon]="icons.cilList" size="xl" title="List Icon"></svg>
<svg [cIcon]="icons.cilShieldAlt" width="25" title="Shield Icon"></svg>
import { Component } from '@angular/core';
import { cilList, cilShieldAlt } from '@coreui/icons';
import { IconDirective } from '@coreui/icons-angular';
@Component({
selector: 'docs-icons01',
templateUrl: './icons01.component.html',
standalone: true,
imports: [IconDirective]
})
export class Icons01Component {
icons = { cilList, cilShieldAlt };
}
import { Component } from '@angular/core';
import { freeSet } from '@coreui/icons';
import { IconDirective } from '@coreui/icons-angular';
@Component({
selector: 'docs-icons02',
templateUrl: './icons02.component.html',
standalone: true,
imports: [IconDirective]
})
export class Icons02Component {
icons = freeSet;
}
<svg [cIcon]="icons.cilList" size="xl" title="List Icon"></svg>
<svg [cIcon]="icons.cilShieldAlt" size="xl" title="Shield Icon"></svg>
```typescript
// app NgModule (excerpt)
import { IconModule, IconSetService } from '@coreui/icons-angular';
@NgModule({
imports: [
IconModule,
...
providers: [
IconSetService
...
```
```typescript
// app component (excerpt)
import { IconSetService } from '@coreui/icons-angular';
import { cilListNumbered, cilPaperPlane, brandSet } from '@coreui/icons';
@Component({...})
export class AppComponent {
constructor(
public iconSet: IconSetService
) {
iconSet.icons = { cilListNumbered, cilPaperPlane, ...brandSet };
}
...
```
| property | type | default | description|
| --- | --- | --- | --- |
| `[cIcon]` `content` | `string`, `string[viewBox, content]` | undefined | SVG content |
| `name` | `string` | undefined | name of SVG icon stored in IconSetService |
| `size` | `custom \| custom-size` \| `sm` \| `lg` \| `xl` \| `2xl` \| `3xl` \| `4xl` \| `5xl` \| `6xl` \|`7xl` \| `8xl` \| `9xl` | '' | Size of icon |
| `title` | `string` | undefined | svg title tag |
| `customClasses` | `string` | undefined | Overwrites default `.icon` classes |
| `viewBox` | `string` | undefined | SVG `viewBox` |
---
### IconSet
_service_
##### Props
| property | type | default | description|
| --- | --- | --- | --- |
| `getIcon()` | `(string): any[] ` | | returns an icon |
| `icons` | `IIconSet` | undefined | IconSet object |
| `iconNames` | `[key: string]: string` | _undefined_ | returns icon name from key |
---
## Available icons
CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons
are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or
mobile app.
cil3d
cil4k
cil-account-logout
cil-action-redo
cil-action-undo
cil-address-book
cil-airplane-mode
cil-airplane-mode-off
cil-airplay
cil-alarm
cil-album
cil-align-center
cil-align-left
cil-align-right
cil-american-football
cil-animal
cil-aperture
cil-apple