mydnic-ui

A set of vuejs components - using tailwind ui
234
Install
npm install mydnic-ui
Latest Version:1.0.1
Vue:3
License:MIT
Last Updated:Sep 1, 2024
Links: GitHub  ·  npm
Maintainer: obaidahmed

Installation

Add this to your package.json:

"mydnic-ui": "git+ssh://git@github.com:mydnic/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 'mydnic-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 'mydnic-ui/mydnic-ui.css';

// your own styles after

Version History

Version Released Vue License
1.0.1 ^3.2.47 MIT