Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@coreui/icons-angular
Advanced tools
Explore CoreUI for Angular docs »
CoreUI Icons »
Report a bug
·
Request a feature
·
Blog
cIcon
directiveAngular directive for CoreUI Icons SVG set.
<svg>
tag,For directive description visit https://coreui.io/angular/docs/
npm install @coreui/icons@3
npm install @coreui/icons-angular@5.2
// app NgModule
import { IconModule, IconSetService } from '@coreui/icons-angular';
@NgModule({
imports: [
IconModule,
...
providers: [IconSetService],
...
// app component
import { cilEnvelopeOpen, flagSet } from '@coreui/icons';
import { IconSetService } from '@coreui/icons-angular';
@Component({
...
})
export class AppComponent implements OnInit {
constructor(public iconSet: IconSetService) {
// iconSet singleton
iconSet.icons = { cilEnvelopeOpen, ...flagSet };
}
...
<svg cIcon name="cil-envelope-open" size="lg"></svg>
<svg cIcon name="cifAu"></svg>
Use one of
name
orcontent
prop as it defines the way of icon import
proprerty | type | default | description |
---|---|---|---|
name | string | undefined | name of SVG icon stored in IconSetService |
content | string, string[] | undefined | SVG content |
size | custom , custom-size , sm , lg , xl , xxl , 3xl , 4xl , 5xl , 6xl , 7xl , 8xl , 9xl | '' | Size of icon |
title | string | undefined | |
customClasses | string | undefined | Overwrites default .icon classes |
viewBox | string | undefined | SVG viewbox |
width | string | undefined | SVG width |
height | string | undefined | SVG height |
proprerty | type | default | description |
---|---|---|---|
getIcon() | (string): any[] | returns an icon | |
icons | IIconSet | undefined | IconSet object |
iconNames | [key: string]: string | undefined | returns icon name from key |
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying the CoreUI PRO or by becoming a sponsor via Open Collective.
Support this project by becoming a Platinum Sponsor. A large company logo will be added here with a link to your website.
Support this project by becoming a Gold Sponsor. A big company logo will be added here with a link to your website.
Support this project by becoming a Silver Sponsor. A medium company logo will be added here with a link to your website.
Support this project by becoming a Bronze Sponsor. The company avatar will show up here with a link to your OpenCollective Profile.
Thanks to all the backers and sponsors! Support this project by becoming a backer.
Copyright 2024 creativeLabs Łukasz Holeczek. Code released under the MIT License. Docs released under Creative Commons.
5.3.4
FAQs
CoreUI Icons Angular component and service
We found that @coreui/icons-angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.