1.0.2 • Published 6 years ago

sketch-outline v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Outline a element in Vue on focus or hover using the hand-drawn style of roughjs.

Example of sketch-outline in action. A cursor hovers over links that read "Sample Link" and a hand-drawn box appears when the link is hovered.

Usage

npm install sketch-outline --save

// Import and register the component in your main JS file
import SketchOutline from 'sketch-outline'
Vue.component('sketch-outline', SketchOutline)
<template>
    <!-- Then use in a template -->
    <sketch-outline color="#c00">
        <h1>Red outline on hover</h1>
    </sketch-outline>
</template>

Props

  • color, string, default #c00. Color of the border.
  • padding, number, default 20. Pixels of padding to give the sketch outline.

Contributing

Questions and issues welcome!

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago