Skip to content

Commit

Permalink
Update icons documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Mar 29, 2024
1 parent 7091635 commit cfc6337
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/app/showcase/doc/icons/figmadoc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component } from '@angular/core';

@Component({
selector: 'figma-doc',
template: `
<app-docsectiontext>
<p>
PrimeIcons library is now available on <a href="https://www.figma.com/community/file/1354343849355792252/primeicons" target="_blank" rel="noopener noreferrer">Figma Community</a>. By adding them as a library, you can easily use these
icons in your designs.
</p>
</app-docsectiontext>
`
})
export class FigmaDoc {}
3 changes: 2 additions & 1 deletion src/app/showcase/doc/icons/icons.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import { ListDoc } from './listdoc';
import { SizeDoc } from './sizedoc';
import { SpinDoc } from './spindoc';
import { MenuModule } from 'primeng/menu';
import { FigmaDoc } from './figmadoc';

@NgModule({
imports: [CommonModule, RouterModule, AppCodeModule, AppDocModule, MenuModule],
declarations: [BasicDoc, ColorDoc, ConstantsDoc, DownloadDoc, ImportDoc, ListDoc, SizeDoc, SpinDoc],
declarations: [BasicDoc, ColorDoc, ConstantsDoc, DownloadDoc, ImportDoc, ListDoc, SizeDoc, SpinDoc, FigmaDoc],
exports: [AppDocModule]
})
export class IconsDocModule {}
6 changes: 6 additions & 0 deletions src/app/showcase/pages/icons/iconsdemo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ImportDoc } from '../../doc/icons/importdoc';
import { ListDoc } from '../../doc/icons/listdoc';
import { SizeDoc } from '../../doc/icons/sizedoc';
import { SpinDoc } from '../../doc/icons/spindoc';
import { FigmaDoc } from '../../doc/icons/figmadoc';

@Component({
templateUrl: './iconsdemo.component.html',
Expand All @@ -24,6 +25,11 @@ export class IconsDemoComponent {
label: 'Import',
component: ImportDoc
},
{
id: 'figma',
label: 'Figma',
component: FigmaDoc
},
{
id: 'basic',
label: 'Basic',
Expand Down

0 comments on commit cfc6337

Please sign in to comment.