Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulcollett/vue-dummy
Placeholder Images and Lorem Ipsum Dummy Text for Vue.js projects
https://github.com/paulcollett/vue-dummy
Last synced: 26 days ago
JSON representation
Placeholder Images and Lorem Ipsum Dummy Text for Vue.js projects
- Host: GitHub
- URL: https://github.com/paulcollett/vue-dummy
- Owner: paulcollett
- License: mit
- Created: 2017-10-11T23:13:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T04:47:52.000Z (almost 6 years ago)
- Last Synced: 2024-01-08T08:50:56.446Z (5 months ago)
- Language: JavaScript
- Homepage: https://git.io/vue-dummy-example
- Size: 42 KB
- Stars: 120
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Vue CLI 3 Plugins)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Vue CLI 3 Plugins)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Payment)
- awesome-vue. - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Payment)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Payment)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Payment)
- awesome-vue - vue-dummy ★30 - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Dev Tools / Vue CLI 3 Plugins)
- awesome-vue - vue-dummy - Placeholder Text and Dummy Images as a simple `v-dummy` directive. (Components & Libraries / Dev Tools)
README
### vue-dummy
## Placeholder Images and Dummy Text for Vue.js`vue-dummy` is a wrapper around the https://dummyjs.com/ library to expose placeholder Images and Dummy, Lorum Ipsum Text as a vue directive
## Usage
Add to your HTML page:
```html
```
or, import into your module `npm install vue-dummy --save-dev`
```js
import Vue from "vue"
import VueDummy from "vue-dummy"Vue.use(VueDummy)
```## Dummy Text
```html
```Choose the number of words:
```html
```Choose random amount of words between 3 & 10:
```html
```As a component:
```html```
## Dummy Images
```html
``````html
```Use width & height attribues _or, size with CSS_
```html
```Defaults to the size of the parent container
```html
```Create random sized images. _Useful for testing dimentions of unknown sized user uploaded images_
```html
```As a component:
```html```
## Special Elements
Using `v-dummy` on some tags will result in some placeholder content with expected markup. This is useful in some cases like quick styling of elements
```html
```
## Example Repeat Elements
Combine with `v-for` to repeat elements
```html
- #{{i}}:
```
#### Examples
https://git.io/vue-dummy-example