You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@muicss/angular

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@muicss/angular

MUI Angular Library

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

MUI Angular

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

Quickstart

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/

Keywords

mui

FAQs

Package last updated on 03 Jun 2021

Did you know?

Socket

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.

Install

Related posts