1.0.5 • Published 4 years ago

v-object-fit v1.0.5

Weekly downloads
19
License
MIT
Repository
gitlab
Last release
4 years ago

v-object-fit directive

Usage

npm install v-object-fityarn add v-object-fit
import Vue from 'vue';
import vObjectFit from 'v-object-fit';
Vue.directive('object-fit', vObjectFit);
<img src="https://picsum.photos/536/354" alt="Image Alt" title="Image Title" v-object-fit>

Options

By default object-fit will be cover, if you want to use other options, you can do it like this:

<img src="https://picsum.photos/536/354" alt="..." title="..." v-object-fit="contain">
1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago