# Lottie VueJS

Render Lottie for VueJS

## Installation

Use the package manager [NodeJS](https://nodejs.org/en/) to install lottie-vue.

```bash
yarn add @tamnt-work/lottie-vue
```

## Usage

Use global

```javascript
import Vue from "vue";
import LottieVue from "@tamnt-work/lottie-vue";

Vue.use(LottieVue);
```

OR

Use local

```javascript
import LottieVue from "@tamnt-work/lottie-vue";

export default {
  components: {
    LottieVue,
  },
};
```

Use on vue

```javascript
<lottie-vue path="/path/to/lottie.json" />
```

## Props

### **path**

_Path to file json lottie_

### **renderer**

_Config tag for render_

- svg
- canvas
- html

### **loop**

_Allow loop animation_

- Boolean

### **autoplay**

_Allow auto play animation_

- Boolean

## Contributing

contact@tamnt.work

## License

[MIT](https://choosealicense.com/licenses/mit/)
