An open API service indexing awesome lists of open source software.

https://github.com/chrisvfritz/hello-vue-components

An example component library built with Vue CLI 3.
https://github.com/chrisvfritz/hello-vue-components

Last synced: 17 days ago
JSON representation

An example component library built with Vue CLI 3.

Awesome Lists containing this project

README

        

# Hello Vue Components

> An example component library built with Vue CLI 3.

## Usage

### Directly in the browser

Drop the library in with a `` tag alongside Vue to globally install all components:

```html
<div id="app">
<hello-a></hello-a>
<hello-b></hello-b>
</div>

<script src="https://unpkg.com/vue">

new Vue({ el: '#app' })

```

Or, if you only want to use a small subset of components, drop them in individually:

```html




new Vue({ el: '#app' })

```

### In a module system

Install the library with NPM:

```bash
npm install hello-vue-components
```

Then register the library as a plugin to globally install all components:

```js
import HelloVueComponents from 'hello-vue-components'

Vue.use(HelloVueComponents)
```

Or, import components individually for local registration:

```js
import { HelloA, HelloB } from 'hello-vue-components'

export default {
components: { HelloA, HelloB }
}
```

#### Individually packaged components

If you only want to use a small subset of components, only import individually packaged components to reduce the size of your application:

```js
import HelloA from 'hello-vue-components.HelloA'
import HelloB from 'hello-vue-components.HelloB'
```