0

I want to use Material Design Component: Lists into my Progressive Web App Starter Kit.

So...

npm install @material/list

Now what?

All I can think to do is

import { MDCList } from '@material/list/dist/mdc.list.css'

or

<link rel="stylesheet" href="/node_modules/@material/list/dist/mdc.list.css"/>

Both produce errors. What should I do?

Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207

1 Answers1

0

You can download the materialize css and js files at keep it at the root level of the project folder

then in the app.js (your entry point file)

 html`
      <link rel="stylesheet" href="./styles/materialize.min.css" />
      <script type="text/javascript" src="./js/materialize.min.js"></script>
<div> Your content here..</div>
`

give the path according to the folder you have created