0.3.0 • Published 6 years ago

vuejs-image-placeholder v0.3.0

Weekly downloads
21
License
MIT
Repository
github
Last release
6 years ago

Vuejs Image Placeholder

svg image placeholder

Creates a customisable svg image placeholder

Install

npm install vuejs-image-placeholder

Usage

All props are optional

Basic

<image-placeholder
    :width="200"
    :height="200"
    :background-colour="#ddd"
    :border-colour="#000"
    :border-width="2"
    :show-ratio="true"
    :font-family="Tahoma, sans-serif"
    :font-colour="#333"
    :font-size="18"
></image-placeholder>

By default the image shows the dimensions, using showRatio prop the ratio can displayed instead. Alternatively you can provide your own text.

<image-placeholder>My Custom Text</image-placeholder>

Available props

PropTypeDefaultDescription
widthNumber200Img width
heightNumber150Img height
backgroundColourString#cccBackground colour
borderColourString#333Border colour
borderWidthNumber1Border width
showRatioBooleanfalseShow image size in pixels or the proportion ratio
fontFamilyStringmonospaceFont for the display text
fontColourString#333Display text colour
fontSizeNumber14Display text size
0.3.0

6 years ago

0.2.0

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago