Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdv authored Mar 22, 2020
1 parent 55404fa commit 1367efa
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# vue-timeline-component

[![npm package](https://img.shields.io/npm/v/vue-timeline-component.svg)](https://www.npmjs.org/package/vue-timeline-component)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/0xdv/vue-timeline-component/blob/master/LICENSE)

## Install

```js
npm install vue-timeline-component
```

## Usage

```html
<template>
<div id="app">
<vue-timeline :data="data"></vue-timeline>
</div>
</template>
```

```js
<script>
import VueTimeline from "vue-timeline-component"

export default {
name: 'App',
components: {
VueTimeline
},
data() {
return {
data: [{
id: 1,
name: "example",
start: new Date(2001, 1,1),
end: new Date(2020, 1,1),
position: 5
}]
}
},
}
</script>
```

0 comments on commit 1367efa

Please sign in to comment.