Skip to content

subotkevic/videl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads Version License

Videl

Videl is a component framework for Vue2. Based on Bulma.

Install

npm install videl --save-dev

Use

Make sure to include the dist/videl.min.css file as the styles have been extracted into a single CSS file.

import 'Vue' from 'vue'
import 'Videl' from 'videl'

Vue.use(Videl)

Install via CDN

<link rel="stylesheet" href="https://unpkg.com/videl/dist/videl.min.css">

<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/videl/dist/videl.min.js"></script>

Example

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="https://unpkg.com/videl/dist/videl.min.css">

        <title>Videl example</title>
    </head>

    <body>
        <div id="app">

            <!-- Container -->
            <vd-container>
            
                <!-- Box -->
                <vd-box>Hello World!</vd-box>
                
                <!-- Button -->
                <vd-button>This is awesome!</vd-button>
                
            </vd-container>
            
        </div>

        <!-- Scripts -->
        <script src="https://unpkg.com/vue/dist/vue.js"></script>
        <script src="https://unpkg.com/videl/dist/videl.min.js"></script>
        
        <script>
            new Vue({
                el: '#app'
            })
        </script>
    </body>
</html>