shelter-zone-ui
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

SHELTER-ZONE UI


Vue 3 components library

Installation

# with npm
$ npm install shelter-zone-ui

# with yarn
$ yarn add shelter-zone-ui

Getting Start

By All components

// in main.js / main.ts
import { createApp } from 'vue'
import App from './App.vue'

import SZUI from 'shelter-zone-ui' // <- import SZUI
import 'shelter-zone-ui/dist/style.css' // <- import SZUI styles

const Vue = createApp(App)
Vue.use(SZUI) // <- use SZUI
Vue.mount("#app")

And then free to use anywhere in .vue component.


By Individual import

<!--in xxx.vue component file--> 
<template>
    <SZButton>Button</SZButton>
</template>

<script>
import { defineComponent } from 'vue'

import { SZButton } from 'shelter-zone-ui' // <- import individual component
import 'shelter-zone-ui/dist/style.css' // <- import styles

export default defineComponent({
  name: "App",
  components: {
    SZButton, // <- use component
  },
</script>

Dependencies (1)

Dev Dependencies (7)

Package Sidebar

Install

npm i shelter-zone-ui

Weekly Downloads

0

Version

0.1.8

License

none

Unpacked Size

38 kB

Total Files

20

Last publish

Collaborators

  • proladon