npm install --save @angular/cdk @ptsecurity/mosaic @ptsecurity/cdk @ptsecurity/mosaic-icons @ptsecurity/mosaic-luxon-adapter @ptsecurity/mosaic-moment-adapter moment @messageformat/core
yarn add @angular/cdk @ptsecurity/mosaic @ptsecurity/cdk @ptsecurity/mosaic-icons @ptsecurity/mosaic-luxon-adapter @ptsecurity/mosaic-moment-adapter moment @messageformat/core
A snapshot build with the latest changes from master is also available. Note that this snapshot build should not be considered stable and may break between releases.
npm install --save positive-js/mosaic-builds positive-js/cdk-builds
yarn add positive-js/mosaic-builds positive-js/cdk-builds
npm install --save @angular/animations
yarn add @angular/animations
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
...
imports: [ BrowserAnimationsModule ],
...
})
export class AppModule { }
You can create a separate NgModule that imports all of the components that you will use in your application. You can then include this module wherever you'd like to use the components.
import { McButtonModule, McCheckboxModule } from '@ptsecurity/mosaic';
@NgModule({
imports: [ McButtonModule, McCheckboxModule ],
exports: [ McButtonModule, McCheckboxModule ]
})
export class CoreCustomModule { }
Including a theme is required to apply all of the core and theme styles to your application.
@import "~@ptsecurity/mosaic/prebuilt-themes/default-theme.css";
You should include mosaic-icons in order to use icons classes
@import "~@ptsecurity/mosaic-icons/dist/styles/mc-icons.css";