0.1.69 • Published 1 year ago

kozmo-ui v0.1.69

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Kozmo UI provides a set of components and utilities for rapid UI development. Components are built using Vue 3 and Tailwind. Along with components, there are directives and utilities that make UI development easier.

Links

Installation

npm install kozmo-ui
# or
yarn add kozmo-ui

Now, import the KozmoUI plugin and components in your Vue app's main.js:

import { createApp } from 'vue'
import { KozmoUI } from 'kozmo-ui'
import App from './App.vue'
import './index.css'

let app = createApp(App)
app.use(KozmoUI)
app.mount('#app')

In your tailwind.config.js file, include the kozmo-ui preset:

module.exports = {
  presets: [
    require('kozmo-ui/src/utils/tailwind.config')
  ],
  ...
}

Now, you can import needed components and start using it:

<template>
  <button>Click me</button>
</template>
<script>
  import { Button } from 'kozmo-ui'
  export default {
    components: {
      Button,
    },
  }
</script>