Skip to content
On this page

npm last versiontravis build statusDependabot statusCodacy BadgeCode coverageirc

This repo contains the various Vue.js components that Nextcloud uses for its internal design and structure.

Installation

bash
npm i --save @nextcloud/vue

Usage

js static
import { NcAppNavigation } from '@nextcloud/vue'

export default {
    name: 'MyComponent',
    components: {
        NcAppNavigation
    }
}

You can also import individual module without bundling the full library.

js static
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'

Recommendations

Some components require Nextcloud functionality to work, so it is currently recommended to extend Vue with the following:

js static
Vue.prototype.OC = window.OC
Vue.prototype.OCA = window.OCA