Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

CoreUI Icons Component for Angular. CoreUI Icons SVG Set implementation for Angular. Moved tohttps://github.com/coreui/coreui-angular/tree/main/projects/coreui-icons-angular

License

NotificationsYou must be signed in to change notification settings

coreui/coreui-icons-angular

Repository files navigation

Code moved to:
https://github.com/coreui/coreui-angular/tree/main/projects/coreui-icons-angular


CoreUI logo

CoreUI Icons for Angular


Explore CoreUI for Angular docs »

CoreUI Icons »

Report a bug ·Request a feature ·Blog

CoreUI Icons Angular

angularangularnpm-coreui-angular-next
NPM
DownloadsLicense

cIcon directive

Angular directive forCoreUI Icons SVG set.

Features

  • Load icons:
    • stored in Angular root service,
    • directly passed SVG content,
  • Reduce icons bundle size when imported as single icons,
  • Full functionality of<svg> tag,
  • Clean API

For directive description visithttps://coreui.io/angular/docs/4.0/

Installation

npm install @coreui/iconsnpm install @coreui/icons-angular

Usage

// app NgModuleimport{IconModule,IconSetService}from'@coreui/icons-angular';@NgModule({imports:[IconModule,...providers:[IconSetService],...
// app componentimport{cilEnvelopeOpen,flagSet}from'@coreui/icons';import{IconSetService}from'@coreui/icons-angular';@Component({  ...})exportclassAppComponentimplementsOnInit{constructor(publiciconSet:IconSetService){// iconSet singletoniconSet.icons={ cilEnvelopeOpen, ...flagSet};}...
<svgcIconname="cil-envelope-open"size="lg"></svg><svgcIconname="cifAu"></svg>

API

Icondirective

Use one ofname orcontent prop as it defines the way of icon import

Inputs
proprertytypedefaultdescription
namestringundefinedname of SVG icon stored in IconSetService
contentstring, string[]undefinedSVG content
sizecustom,custom-size,sm,lg,xl,xxl,3xl,4xl,5xl,6xl,7xl,8xl,9xl''Size of icon
titlestringundefined
customClassesstringundefinedOverwrites default.icon classes
viewBoxstringundefinedSVGviewbox
widthstringundefinedSVGwidth
heightstringundefinedSVGheight

IconSetservice

Props
proprertytypedefaultdescription
getIcon()(string): any[]returns an icon
iconsIIconSetundefinedIconSet object
iconNames[key: string]: stringundefinedreturns icon name from key

License

CoreUI Icons Free are free, open source, and GPL friendly. You can use it forcommercial projects, open source projects, or really almost whatever you want.

  • Icons — CC BY 4.0 License
    • In the CoreUI Icons Free download, the CC BY 4.0 license applies to all icons packaged as .svg and .js files types.
  • Fonts — SIL OFL 1.1 License
    • In the CoreUI Icons Free download, the SIL OLF license applies to all icons packaged as web and desktop font files.
  • Code — MIT License
    • In the CoreUI Icons Free download, the MIT license applies to all non-font and non-icon files.

[8]ページ先頭

©2009-2025 Movatter.jp