casper-ui
v1.0.13
Published
A set of vuejs components - using tailwind ui
Downloads
5
Readme
Installation
Add this to your package.json:
"casper-ui": "git+ssh://[email protected]: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'
// Register filters// Filters
vueApp.config.globalProperties.$filters = filters
// Directives
directives(vueApp)
// Emitter
const emitter = mitt()
vueApp.config.globalProperties.emitter = emitter
// Toast
registerToastPlugin(vueApp)
// Dialog
registerDialogPlugin(vueApp)
registerModalPlugin(vueApp)
CSS Styles
Import the scss file in your main scss
@import 'casper-ui/casper-ui.css';
// your own styles after