
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@muicss/angular
Advanced tools
MUI Angular is a library that helps you to add MUI components to your Angular apps seamlessly.
Install with NPM:
$ npm install --save @muicss/angular
Install with ng:
$ ng add @muicss/angular
Create a new Angular app and install the MUI Angular library:
$ ng new my-app --style scss
$ cd my-app
$ ng add @muicss/angular
Next install the MUI SCSS files:
$ npm install --save muicss
Add the MUI Angular button module to the app module (src/app/app.module.ts
):
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ButtonModule } from '@muicss/angular/button';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ButtonModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Replace the app component html code with the following (src/app/app.component.html
):
<mui-button color="primary">Press Me!</mui-button>
Next add the MUI SCSS modules we need to your styles.scss file (src/styles.scss
):
// Core variables and mixins
@import
"~muicss/lib/sass/mui/colors",
"~muicss/lib/sass/mui/variables",
"~muicss/lib/sass/mui/mixins";
// Globals
@import
"~muicss/lib/sass/mui/globals";
// Components
@import
"~muicss/lib/sass/mui/buttons";
// Miscellaneous
@import
"~muicss/lib/sass/mui/helpers",
"~muicss/lib/sass/mui/ripple",
"~muicss/lib/sass/mui/typography";
Run the development server:
$ ng serve
Then visit http://localhost:4200/
FAQs
MUI Angular Library
We found that @muicss/angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.