diff --git a/docs/getting-started/build-tools/index.html b/docs/getting-started/build-tools/index.html index 604b74caf..a1b3b6da1 100644 --- a/docs/getting-started/build-tools/index.html +++ b/docs/getting-started/build-tools/index.html @@ -20,30 +20,16 @@ - + - -
diff --git a/docs/getting-started/introduction/index.html b/docs/getting-started/introduction/index.html index 6f6e4ba8c..2617d1f12 100644 --- a/docs/getting-started/introduction/index.html +++ b/docs/getting-started/introduction/index.html @@ -20,30 +20,16 @@ - + - - diff --git a/docs/index.xml b/docs/index.xml index 8df0bf3e6..109a79d84 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -38,7 +38,7 @@ Please use cil- prefix for linear icons, cib- prefix for brand icons, and cif- pCooming Soon
+ + +<svg>
html tag,npm install @coreui/icons
+npm install @coreui/icons-angular
// app NgModule
+
+import { IconModule, IconSetModule, IconSetService } from '@coreui/icons-angular';
+
+@NgModule({
+ imports: [
+ IconModule,
+ IconSetModule.forRoot(),
+...
+ providers: [IconSetService],
+...
// app component
+
+import { cilEnvelopeOpen, flagSet } from '@coreui/icons';
+import { IconModule, IconSetModule, IconSetService } from '@coreui/icons-angular';
+
+@Component({
+ ...
+ providers: [IconSetService],
+ ...
+})
+export class AppComponent implements OnInit {
+ constructor(public iconSet: IconSetService) {
+ // iconSet singleton
+ iconSet.icons = { cilEnvelopeOpen, ...flagSet };
+ }
+...
<c-icon name="cil-envelope-open" size="lg"></c-icon>
+<c-icon name="cifAu"></c-icon>
++ +Use one of
+name
,src
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 | +
src |
+string | +undefined | +Link to the icon. If defined, component will be rendered as <img> tag |
+
size |
+custom , custom-size , sm , lg , xl , 2xl , 3xl , 4xl , 5xl , 6xl , 7xl , 8xl , 9xl |
+“ | +Size of icon | +
title |
+string | +undefined | ++ |
use |
+string | +undefined | +SVG <use> |
+
customClasses |
+string | +undefined | +Replaces default c-icon component classes |
+
viewBox |
+string | +undefined | +SVG viewbox |
+
attributes |
+any | +{ role: 'img' } |
+Object with additional html attributes | +
width |
++ | undefined | +SVG width |
+
height |
++ | undefined | +SVG height |
+