Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
The Wolf Oil UI package can be used as a VueJS component library you can include with your project. Pull in Wolf Oil UI's files into your project with your preferred package manager.
npm install wolf-oil-ui
yarn add wolf-oil-ui
You will see a new folder wolf-oil-ui appear in the /node_modules folder of your project. This means we have succesfully downloaded the Wolf Oil UI component library.
Now we only need to include the package within our project to start building pages with the VueJS components. To do this, add the following line of code into your projects main file (most likely App.vue)
import 'wolf-oil-ui'
Important: since the package is delivered as a VueJS component library, you don't need to register each component into your application. By importing the the package, all provided VueJS components will be automatically registered and are ready to use out of the box. Easy peasy.
The wolf-oil-ui package comes with a minified and compressed CSS stylesheet. The most convenient way to include the Wolf Oil UI styles into your project is providing an @import in your applications main CSS file like this:
@import "node_modules/wolf-oil-ui/dist/wolf-oil-ui-lib.css";
If you don't want to or simply can't include a precompiled CSS file in your application, you can make use of our source .scss files which can be found on node_modules/wolf-oil-ui/src/scss.
WARNING
If you chose to build the CSS stylesheet from our source .scss files, please keep in mind you will need to put your own build system in place to provide browser prefixing, linting, resolving assets, etc...
It's important to understand every Vue component is prefixed with wo-. So instead of using <button></button> which is the native HTML element, the Wolf Oil UI button component can be used by providing <wo-button></wo-button> in your applications Vue templates. All of the provided CSS styles that come with the component library will also be prefixed with .wo- to avoid conflicting styles with already present CSS styles from your application.
TIP
When using the Wolf Oil UI in your application, try not to use the wo- prefix outside of the component library to avoid conflicts.