0.0.17 • Published 11 months ago
@srknc/icons v0.0.17
Installation
All public npm packages of SRKNC is at https://www.npmjs.com/~srknc. To install Module:
$ npm set registry https://registry.npmjs.org/
$ npm install @srknc/icons -s
Just import it to your project of @NgModule
import section.
@NgModule({
declarations: [AppComponent],
imports: [IconsModule],
})
export class AppModule {}
Add Icons
Add icons-list.scss
file to your main style.scss
file. It will add base64 svg
class.
@import '@srknc/icons/src/icon-list';
// or @import 'projects/srknc/icons/src/icon-list'
If you want to change color of SVG, just add color: red
attribute to your css class.
Icons Component
The IconComponent displays icons of the folder and filter for typed text.
To generate SVG icons just run npm run icons
script.
app.component.html
Add the below code to your code stack and give initializer parameters.
<srknc-icons></srknc-icons>