0.7.0 • Published 3 years ago

@qikkeronline/qikker-ui v0.7.0

Weekly downloads
193
License
MIT
Repository
github
Last release
3 years ago

Qikker UI

A collection of basic vue components for use with the qikker frontend boilerplate.

Getting Started

Install qikker-ui via npm or yarn.

# Via NPM.
$ npm install @qikkeronline/qikker-ui

# Via Yarn.
$ yarn add @qikkeronline/qikker-ui

By design, Qikker UI doesn't ship with pre-built files, so you must compile the code in your project. Please follow the following instruction to set up your build system.

Qikker UI comes with a config file qikker-ui.scss, this file is created post install at the root of your project. You can change global variables here.

To compile Vue Components, you must have appropriate build settings. For example, in Nuxt.js, you should define the following setting at nuxt.config.js, this allows using named exports for the components. (In vue projects this does not seem to be needed. TODO examine this)

export default {
  // ...

  build: {
    transpile: ['@qikkeronline/qikker-ui'],
  },

  // ...
}

To begin using the components, import them from the qikker-ui package.

<template>
  <div>
    <QInput label="Label" placeholder="Placeholder" />
  </div>
</template>

<script>
import { QInput } from '@qikkeronline/qikker-ui'

export default {
  components: {
    QInput
  }
}
</script>

You can also import them as global components.

Example usage with NuxtJS plugin

// qikker-ui.js
import Vue from 'vue'
import { QIcon, QSvg, QInput, QCheckbox, QRadio, QToggle } from '@qikkeronline/qikker-ui'

Vue.component('q-icon', QIcon) // * see notes below for alternative registration
Vue.component('q-svg', QSvg)
Vue.component('q-input', QInput)
Vue.component('q-checkbox', QCheckbox)
Vue.component('q-radio', QRadio)
Vue.component('q-toggle', QToggle)

Important Notes

It is suggested that you import at least these components as global: Qicon, Qsvg. For the rest it depends on your project.

QIcon is set to stroke: currentColor by default. If you want to globally set it to fill: currentColor you can do so by registering it like this instead in the qikker-ui.js:

Vue.use(QIcon, { isFill: true })

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:8080
$ npm run serve

# build for production
$ npm run build


For detailed explanation on how things work, checkout [Nuxt.js docs](https://nuxtjs.org).
0.7.0

3 years ago

0.6.10

4 years ago

0.6.9

4 years ago

0.6.8

4 years ago

0.6.7

4 years ago

0.6.6

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2-alpha.5

4 years ago

0.6.2-alpha.4

4 years ago

0.6.2-alpha.3

4 years ago

0.6.2-alpha.2

4 years ago

0.6.2-alpha.1

4 years ago

0.6.2-alpha.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.2

5 years ago

0.4.2-alpha.6

5 years ago

0.4.2-alpha.5

5 years ago

0.4.2-alpha.4

5 years ago

0.4.2-alpha.3

5 years ago

0.4.2-alpha.2

5 years ago

0.4.2-alpha.1

5 years ago

0.4.2-alpha.0

5 years ago

0.4.1

5 years ago

0.4.0-alpha.0

5 years ago

0.4.0

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago