How to use the buefy/src/utils/plugins.use function in buefy

To help you get started, we’ve selected a few buefy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mubaidr / vue-fluent / src / lib / index.js View on Github external
import config, { setOptions } from 'buefy/src/utils/config'
import { use } from 'buefy/src/utils/plugins'

const VueFluent = {
  install(Vue, options = {}) {
    // Options
    setOptions(Object.assign(config, options))
    // Components
    for (let componentKey in components) {
      Vue.use(components[componentKey])
    }
  },
}

use(VueFluent)

export default VueFluent
export * from 'buefy/src/components'