From 733c99e316a8156bf96b19dc886857657f02da89 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 25 Dec 2018 10:33:15 +0400 Subject: [PATCH] Update usage instructions --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index ba1f2d7..7756136 100644 --- a/readme.md +++ b/readme.md @@ -61,6 +61,14 @@ Or grab the code from `dist` directory and include it directly. ## Usage and Demo +If you are using some sort of module bundler, import the library and the CSS file + +```javascript +import Driver from 'driver.js'; +import 'driver.js/dist/driver.min.css'; +``` +otherwise use the `script` and `link` tags to import the JavaScript and CSS files. + Demos and many more usage examples can be found [in the docs page](http://kamranahmed.info/driver.js). ### Highlighting Single Element – [Demo](http://kamranahmed.info/driver.js#single-element-no-popover) -- GitLab