0.1.9 • Published 11 months ago

@spms/angular-icons v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

SPMS AngularIcons

This library was generated with Angular CLI version 15.2.0.

This is a Angular icons library created to serve SPMS applications.

Installation

Install the package in your project directory with:

yarn add @spms/angular-icons

This is a Angular Material based library, so if you don't already have it, you will also need to install the following package:

ng add @angular/material

Usage

You need to import the SPMSAngularIconsModule to be able to use the icons library in your app.module.ts file.

import { SPMSAngularIconsModule } from '@spms/angular-icons';

@NgModule ({
  imports: [
    SPMSAngularIconsModule,
  ]
})
class AppModule {}

Add the icon tag to the html file like so:

<spms-icon fontIcon="user" color="primary" size="medium" />

<spms-logo fontIcon="sns" color="primary" size="120px" />

Note: We are working in our docs application. Click here to access a provisional reference docs and the list of available icons.

Props

Use the color and size props to customize the icon.

1. Color

To customize the color of the icon, you can use some of the @spms/styleguide color or any hex code like #333333;

2. Size

To change the size of the icon, you can use small, medium, large, xlarge or any px value like 36px.

small = 20px x 20px medium = 24px x 24px large = 40px x 40px xlarge = 60px x 60px

Note: If you are using spms-logo component, the size prop will only affect the width of the component. In this case, the height will be auto.

Note: By default, the SPMS icons use color="primary" and size="medium".

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.32

11 months ago

0.1.31

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.9

11 months ago

0.0.87

11 months ago

0.0.86

11 months ago

0.0.85

11 months ago

0.0.84

11 months ago

0.0.83

11 months ago

0.0.82

11 months ago

0.0.81

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

12 months ago

0.0.1

12 months ago