CtrlK
Sign in

Install#

CDN#

Get the latest version of View UI from unpkg.com/view-ui-plus. Use CDN to deliver compiled JS and CSS to your project:

<!-- import Vue.js -->
<script src="https://unpkg.com/vue@next"></script>
<!-- import stylesheet -->
<link rel="stylesheet" href="https://unpkg.com/view-ui-plus/dist/styles/viewuiplus.css">
<!-- import View UI Plus -->
<script src="https://unpkg.com/view-ui-plus"></script>

Get Started#

It's easy to get started with CDN.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>View UI Plus example</title>
    <link rel="stylesheet" type="text/css" href="https://unpkg.com/view-ui-plus/dist/styles/viewuiplus.css">
    <script type="text/javascript" src="https://unpkg.com/vue@next"></script>
    <script type="text/javascript" src="https://unpkg.com/view-ui-plus"></script>
</head>
<body>
<div id="app">
    <i-button @click="show">Click me!</i-button>
    <Modal v-model="visible" title="Welcome">Welcome to View UI Plus</Modal>
</div>
<script>
    const app = Vue.createApp({
        data () {
            return {
                visible: false
            }
        },
        methods: {
            show () {
                this.visible = true;
            }
        }    
    });
    app.use(ViewUIPlus);
    app.mount("#app");
  </script>
</body>
</html>

NPM#

Install View UI Plus with the node package manager. It can work with webpack and ES2015 very well.

$ npm install view-ui-plus --save

If you wish to use npm and webpack, please continue to read the next paragraph.