npm.io
0.9.0 • Published 6 years ago

vue-spotlight

Licence
MIT
Version
0.9.0
Deps
6
Size
1.9 MB
Vulns
0
Weekly
0

Vue spotlight

A macOS Spotlight like widget for websites with Vue

Installation

    npm install vue-spotlight -S

Demo

Usage

    import Spotlight from 'vue-spotlight'

    // register globally
    Vue.component('Spotlight', Spotlight)

    // or locally
    export default {
        components: { Spotlight}
    }

And then you can place it in your template

    <Spotlight field-name="symbol" :data-provider="dataProvider" :widget-open="open" :action="action" :match-renderer="renderer"/>

Props

Development

To start webpack in watch mode run:

    npm run dev

Author

Krisztian Papp @tacsiazuma

License

MIT