• Stars
    star
    315
  • Rank 132,347 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An example component library built with Vue CLI 3.

Hello Vue Components

An example component library built with Vue CLI 3.

Usage

Directly in the browser

Drop the library in with a <script> tag alongside Vue to globally install all components:

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

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/hello-vue-components"></script>
<script>
  new Vue({ el: '#app' })
</script>

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

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

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/hello-vue-components/HelloA"></script>
<script src="https://unpkg.com/hello-vue-components/HelloB"></script>
<script>
  new Vue({ el: '#app' })
</script>

In a module system

Install the library with NPM:

npm install hello-vue-components

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

import HelloVueComponents from 'hello-vue-components'

Vue.use(HelloVueComponents)

Or, import components individually for local registration:

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:

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

More Repositories

1

prerender-spa-plugin

Prerenders static HTML in a single-page application.
JavaScript
7,315
star
2

vue-2.0-simple-routing-example

A simple example of routing with Vue 2.0 without using vue-router.
Vue
1,653
star
3

7-secret-patterns

587
star
4

rails-javascript-integrations

Progressive integration strategies for JavaScript-heavy Rails apps
Ruby
184
star
5

vue-ssr-demo-simple

Simplest possible Vue 2.0 SSR demo
JavaScript
152
star
6

isabella

A voice-computing assistant built in Ruby.
Ruby
139
star
7

vue-monolith-example

Simple example of how to structure a monolithic Vue application
JavaScript
129
star
8

vue-render-performance-comparisons

Very simple project to benchmark Vue's render performance in comparison to other libraries
JavaScript
123
star
9

language_filter

LanguageFilter is a Ruby gem to detect and optionally filter multiple categories of language.
Ruby
91
star
10

vuepress-enhanced-examples

This is an attempt at providing a better experience for documentation authors and consumers, in regards to examples.
Vue
58
star
11

vue-3-trends

43
star
12

prerender-spa-plugin-vue-demo

JavaScript
31
star
13

vue-workshop

JavaScript
27
star
14

vue-migration-helper

20
star
15

pnglink

pnglink allows dynamic content, created by libraries like D3.js, to be downloaded as a PNG snapshot with a single click.
JavaScript
17
star
16

node-web-server-demos

Simple Node web server demos
9
star
17

vue-enterprise-slides

7
star
18

vue-protyping-boilerplate

Vue
5
star
19

eslint-plugin-vue

Official ESLint plugin for Vue.js
JavaScript
4
star
20

vue-cli

🛠️ CLI for rapid Vue.js development
JavaScript
3
star
21

cat_api

Ruby
3
star
22

view-framework-demos

HTML
3
star
23

tc359_cheatsheets

Cheatsheets for common tasks and difficult concepts.
2
star
24

-

2
star
25

better-world-wallet-web

Prototype for a better way of handling donations (first for YouTube artists), then for the WOOORLD!
CoffeeScript
2
star
26

holidapi

A Ruby gem for interacting with the Holiday API service.
Ruby
1
star
27

tc359_syllabus

1
star
28

maintainable-webpack-config

JavaScript
1
star
29

simple_cat_app

CSS
1
star
30

codekwondo

Ruby
1
star
31

heroku-buildpack-nodejs-chn-link

Shell
1
star