Installation
Add this to your package.json:
"casper-ui": "git+ssh://git@github.com:casper/ui.git#v[REPLACE_WITH_LATEST_VERSION]",
Usage
Vuejs Components
You can register all components from the library automatically with this one liner:
import {filters, directives, registerToastPlugin, registerModalPlugin, registerDialogPlugin} from 'casper-ui'
vueApp.config.globalProperties.$filters = filters
directives(vueApp)
const emitter = mitt()
vueApp.config.globalProperties.emitter = emitter
registerToastPlugin(vueApp)
registerDialogPlugin(vueApp)
registerModalPlugin(vueApp)
CSS Styles
Import the scss file in your main scss
@import 'casper-ui/casper-ui.css';