From f3879ba36d65abc3f118fbfe36b43f16a6431931 Mon Sep 17 00:00:00 2001 From: Matt Goo Date: Fri, 21 Jun 2019 16:08:23 -0700 Subject: [PATCH] Update README.md --- packages/mdc-linear-progress/README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/mdc-linear-progress/README.md b/packages/mdc-linear-progress/README.md index 44e33e5c002..75fa6b73129 100644 --- a/packages/mdc-linear-progress/README.md +++ b/packages/mdc-linear-progress/README.md @@ -52,19 +52,20 @@ npm install @material/linear-progress ``` -### Styles -```scss -@import "@material/linear-progress/mdc-linear-progress"; -``` +### Styles +```scss +@import "@material/linear-progress/mdc-linear-progress"; +``` + + ### JavaScript Instantiation - ### JavaScript Instantiation + ```js +import { MDCLinearProgress } from '@material/linear-progress'; - ```js -import { MDCLinearProgress } from '@material/linear-progress'; - const linearProgress = new MDCLinearProgress(document.querySelector('.mdc-linear-progress')); -``` +const linearProgress = new MDCLinearProgress(document.querySelector('.mdc-linear-progress')); +`` - > See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript. +> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript. ### CSS Modifiers