Installation
Learn how to install Chocolat depending on your environment
Last updated
Learn how to install Chocolat depending on your environment
Using the packet manager of your choice you can install chocolat like this:
yarn add chocolat
# or
npm install chocolatYou can also clone or download the source and copy the ./dist/ folder in your working directory :
https://github.com/nicolas-t/chocolat/archive/master.zipIf you do not use a module , you can still import chocolat via script tags (preferably just before closing </body>) :
<!-- ... -->
<script src="dist/js/chocolat.js"></script>
</body>You will also need to import the css between the <head> tags :
<head>
<!-- ... -->
<link rel="stylesheet" href="../dist/css/chocolat.css" />
<!-- ... -->
</head>If you use a bundler like webpack you can then import Chocolat module in your javascript file :
And import the CSS in your CSS file :
Last updated
import Chocolat from 'chocolat'@import '~chocolat/dist/css/chocolat.css';