vue-layout-primitives.v-stack

0.0.7 • Public • Published

vue-layout-primitives.v-stack

A component that aligns its children vertically with a specified gap between each successive child.

Installation

Directly in the browser

Drop the component in with a <script> tag alongside Vue:

<div id="app">
<!-- ... use component here ... -->
</div>
 
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-layout-primitives.v-stack"></script>
<script>
new Vue({ el: '#app' })
</script> 

In a module system

Install the component with NPM:

npm install vue-layout-primitives.v-stack

Then import the component:

import VStack from 'vue-layout-primitives.v-stack'

And either globally register it for use in all components:

Vue.component(VStack, 'vue-layout-primitives.v-stack')

or locally register it for use in an individual component:

export default {
components: { VStack }
}

Usage

<!-- No props or content are necessary. -->
  <VStack>
        ...
    </VStack>

Readme

Keywords

none

Package Sidebar

Install

npm i vue-layout-primitives.v-stack

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

158 kB

Total Files

23

Last publish

Collaborators

  • philcurl