0.1.70 • Published 1 year ago

clairview-ui v0.1.70

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

Clairview 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 clairview-ui
# or
yarn add clairview-ui

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

import { createApp } from 'vue'
import { ClairviewUI } from 'clairview-ui'
import App from './App.vue'
import './index.css'

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

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

module.exports = {
  presets: [
    require('clairview-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 'clairview-ui'
  export default {
    components: {
      Button,
    },
  }
</script>