Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@ptsecurity/mosaic-icons

5.2.1 • Public • Published

npm version Build Status Dependency Status GitHub license

Mosaic Icons

Installation

Note that Mosaic Icons is optional package and it should be installed manually.

NPM

npm install @ptsecurity/mosaic-icons --save

Yarn

yarn add @ptsecurity/mosaic-icons

Then you should add icons styles:

@import "~@ptsecurity/mosaic-icons/dist/styles/mc-icons.css";

And finally import McIconModule to your component module.

import { McIconModule } from '@ptsecurity/mosaic';

@NgModule({
    imports: [
        McIconModule,
        ...
    ],
})
export class AppModule {}

If mc-icons.css does't suit your project, you can also add:

  • mc-icons.less;
  • mc-icons-embed.css with embedded font included.

Variants

There are two icon usage variants:

  1. <i mc-icon="mc-gear_16"></i>;

    In this case you can provide [color] attribute. It can have following values: primary, second, error.

  2. Simply <i class="mc mc-gear_16"></i>.

Keywords

Install

npm i @ptsecurity/mosaic-icons

DownloadsWeekly Downloads

99

Version

5.2.1

License

MIT

Unpacked Size

186 kB

Total Files

125

Last publish

Collaborators

  • avatar