March 2018
Beginner to intermediate
514 pages
13h 11m
English
As in the example with enigma.js, you can install Leonardo UI using npm install by running the following command:
npm install --save leonardo-ui
You can then reference the downloaded .js library and styling sheet to your HTML page on your Node.js web app:
<head> <link rel="stylesheet" href="node_modules/leonardo-ui/dist/leonardo-ui.css" type="text/css"/> </head> <body> <!-- Page content --> <script src="node_modules/leonardo-ui/dist/leonardo-ui.js" type="text/javascript"></script> </body>
Instead of using npm install, you can also manually download the Leonardo UI repository and host the reference files on your web page. Make sure to reference them correctly.
Read now
Unlock full access