Karthi
Karthi

Reputation: 3489

How to use material-ui in angular 7

I want to use material-ui in angular 7.I know that angular material is present.But I want to use ui-material instead of angular material.I don't know how to use it in angular

Upvotes: 1

Views: 2558

Answers (2)

Gaurav Janoti
Gaurav Janoti

Reputation: 106

Since Material Design Lite does not have any dependency, it's going to be easy to set up. You can use your favorite tool to grab its source code.

bower: bower install material-design-lite --save // using bower
npm: npm install material-design-lite --save // using npm

Next, we need to create an index.html file and include MDL's CSS file and JS files:

ex-

Now we can immediately use any of the MDL components.

Let's say we want to add a raised button with ripples, we just need to add the following to the body:

<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect">
  Button
</button>

Upvotes: 1

Ikechukwu Eze
Ikechukwu Eze

Reputation: 3161

Material UI and Angular Material are both implementation of google material design. But Material UI is for react, while Angular Material is for Angular.

Upvotes: 3

Related Questions