Home

Awesome

Vue Picture Sharesheet Compoenent

image

vue-picture-sharesheet provides an easy and beautiful sharesheet when hovering over images. Currently supported main features are:

Demo 😻

with cute cats 😻 (The Download in the Demo will just download random cat images as the image changes with every request)

Getting Started

(Vue CLI Usage recommended)

Install

npm install vue-picture-sharesheet --save

Import locally

import PictureSharesheet  from 'vue-picture-sharesheet';

export default {
  name: 'HelloWorld',
  components: {
    PictureSharesheet
  }
}

OR import globally (f.e. in the Main.js)

import PictureSharesheet from 'vue-picture-sharesheet'
Vue.component('picture-sharesheet',PictureSharesheet);

Properties

Native image attributes 🛠

Component attributes 🎨

Examples

Showing the Sharesheet all the time (not only while :hover) and set the background-color of the sharesheet to white and the icon color to black.

<picture-sharesheet src="https://source.unsplash.com/800x500/?cat" sheetcolor="#FFF" iconcolor="#000" fixed/>

Set the position of the sharesheet to top, the height of the Sharesheet to 100px and the message that will be shared via the Social Media Buttons to "YAY!"

<picture-sharesheet src="https://source.unsplash.com/600x550/?cat" position="top" size="100px" sharemessage="YAY!"/>

Commands

<!--- ## Commands from the Boilerplate - `npm run clean` - Remove `lib/` directory - `npm test` - Run tests with linting and coverage results. - `npm test:only` - Run tests without linting or coverage. - `npm test:watch` - You can even re-run tests on file changes! - `npm test:prod` - Run tests with minified code. - `npm run test:examples` - Test written examples on pure JS for better understanding module usage. - `npm run lint` - Run ESlint with airbnb-config - `npm run cover` - Get coverage report for your code. - `npm run build` - Babel will transpile ES6 => ES5 and minify the code. - `npm run prepublish` - Hook for npm. Do all the checks before publishing your module. -->

Roadmap