@snapatoms/vue
v0.1.6
Published
Part of the frontend Snapatoms project. This is the Vue component pack.
Readme
Vue Snapatoms
Part of the frontend Snapatoms project. This is the Vue component pack.
Installation
npm install @snapatoms/vue
That's it!
Component Overview
Slideshow
Import the slide, and let the slots take care of your content:
Script
<script>
import { Slideshow } from "@snapatoms/vue";
import { SlideshowItem } from "@snapatoms/vue";
export default {
name: "App",
components: {
Slideshow,
SlideshowItem,
},
};
</script>
Template
<template>
<div id="app">
<Slideshow>
<SlideshowItem>Test</SlideshowItem>
<SlideshowItem>Test 1</SlideshowItem>
<SlideshowItem>Test 2</SlideshowItem>
<SlideshowItem>Test 3</SlideshowItem>
</Slideshow>
</div>
</template>Styles
<style>
@import "~/@snapatoms/vue";
...
</style>Development
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your unit tests
npm run test:unitLints and fixes files
npm run lint