vuebbble
Vue component to easily display dribbble shots from a user
933
3
| Install | |
|---|---|
npm install vuebbble |
|
| Latest Version: | 2.7.2 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Dec 10, 2022 |
| Links: | GitHub · npm |
Maintainer: robbinfellow
Vuebbble
Vue component to easily display dribbble shots from a user using the v2 API.
Demo
Installation
$ yarn add vuebbble --dev
# or ...
$ npm i vuebbble --save-dev
Register the component:
import Vue from 'vue';
import { Vuebbble } from 'vuebbble';
Vue.component('vuebbble', Vuebbble);
Alternatively using Vue.use() to register the component:
import Vuebbble from 'vuebbble';
Vue.use(Vuebbble);
Usage
Display the component using scoped slots.
<template>
<vuebbble
:token="token"
:count="count"
>
<div slot="shot" slot-scope="{ shot }">
<img :src="https://raw.githubusercontent.com/robbinworks/vuebbble/HEAD/shot.images.hidpi" :alt="shot.title">
</div>
<!-- Optional: Custom error message markup -->
<div slot="error" slot-scope="{ error }">
{{ error }}
</div>
</vuebbble>
</template>
<script>
import { Vuebbble } from 'vuebbble';
Vue.component('vuebbble', Vuebbble);
export default {
data() {
return {
token: 'ACCESS_TOKEN',
count: 9,
};
},
};
</script>
:mag: Inspect the component using Vue devtools to see all available data from the response.
Available properties
| Prop | Data Type | Default | Required | Description |
|---|---|---|---|---|
token |
String | true |
Application access token | |
count |
Number | 5 | false |
Number of shots to fetch |
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
@intlayer/editor
Provides the utilities to interface the application with the Intlayer editor and...
660,904
856
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.7.2 | ^2.3.0 | MIT | |
| 2.7.1 | ^2.3.0 | MIT | |
| 2.7.0 | ^2.3.0 | MIT | |
| 2.6.0 | ^2.3.0 | MIT | |
| 2.5.0 | ^2.3.0 | MIT | |
| 2.4.0 | ^2.5.13 | MIT | |
| 2.3.5 | ^2.5.13 | MIT | |
| 2.3.4 | ^2.5.13 | MIT | |
| 2.3.3 | ^2.5.13 | MIT | |
| 2.3.2 | ^2.5.13 | MIT | |
| 2.3.1 | ^2.5.13 | MIT | |
| 2.3.0 | ^2.5.13 | MIT | |
| 2.2.1 | ^2.0.1 | MIT | |
| 2.2.0 | ^2.0.1 | MIT | |
| 2.1.14 | ^2.0.1 | MIT | |
| 2.1.13 | ^2.0.1 | MIT | |
| 2.1.12 | ^2.0.1 | MIT | |
| 2.1.11 | ^2.0.1 | MIT | |
| 2.1.1 | ^2.0.1 | MIT | |
| 2.1.0 | ^2.0.1 | MIT | |
| 2.0.9 | ^2.0.1 | MIT | |
| 2.0.7 | ^2.0.1 | MIT | |
| 2.0.6 | ^2.0.1 | MIT | |
| 2.0.5 | ^2.0.1 | MIT | |
| 2.0.4 | ^2.0.1 | MIT | |
| 2.0.3 | ^2.0.1 | MIT | |
| 2.0.2 | ^2.0.1 | MIT | |
| 2.0.1 | ^2.0.1 | MIT | |
| 2.0.0 | ^2.0.1 | MIT |