# vue-inspirational-quote

> This is a tiny component that uses the https://favqs.com API to retrieve random inspirational quotes. In the example below we only use 'body' and 'author', but there are more to explore on [https://favqs.com].

Latest version **0.1.3** (published 2019-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-inspirational-quote
pnpm add vue-inspirational-quote
yarn add vue-inspirational-quote
bun add vue-inspirational-quote
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2019-12-10 |
| First published | 2019-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 309.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | x. Villamuera |
| Maintainers | xavsio4 |
| Keywords | vuejs, quotes, favqs |

## Links

- npm: https://www.npmjs.com/package/vue-inspirational-quote
- Repository: https://github.com/xavsio4/vue-inspirational-quote
- Homepage: https://github.com/xavsio4/vue-inspirational-quote#readme
- Issues: https://github.com/xavsio4/vue-inspirational-quote/issues
- npm.io page: https://npm.io/package/vue-inspirational-quote

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [core-js](https://npm.io/package/core-js.md) ^3.4.3

## Recent versions

- 0.1.3 (latest) — 2019-12-10
- 0.1.2 — 2019-12-10
- 0.1.1 — 2019-12-10
- 0.1.0 — 2019-12-10

## README

# vue-inspirational-quote

This is a tiny component that uses the https://favqs.com API to retrieve random inspirational quotes. In the example below we only use 'body' and 'author', but there are more to explore on [https://favqs.com]. 

There is no dependency and the component will pass the entire quote data throughout scoped slots.

Therefore, you must use a scoped template. And that is the beauty of vue because you can display data however you want to style it.

Check examples here under.

![vue-inspirational-quote Gif](demo/demo.jpg)

in order to install it in your project
```
npm install vue-inspirational-quote (or npm i vue-inspirational-quote)

```

then import the component where you need it

```
<template>
    <div>
        <vue-inspirational-quote>
            <template v-slot:default="slotProps">
            <blockquote class="blockquote quote">
                &#8220;{{ slotProps.quote.body }}&#8221;
                <p>
                    <em>&mdash;{{ slotProps.quote.author }}</em>
                </p>
            </blockquote>
            </template>
        </vue-inspirational-quote> 
    </div>
</template>

<script>
import VueInspirationalQuote from "vue-inspirational-quote"

export default {
    components: {
    VueInspirationalQuote
    },
}

</script>
<style scoped>
    .quote
    {
    background-color:#eee;
    padding:6px;
    }
</style>

```

Events
------

| Name              | Params                       | Info                                                  |
| ----------------- | ---------------------------- | ----------------------------------------------------- |
| **@quote**         | *item*: (the quote data) item.value         | emits the quote              |


This is the demo in the marvellous Codesandbox\
[![Edit vue-inspirational-quote](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vue-inspirational-quote-757s7?fontsize=14&hidenavigation=1&theme=dark)


## Version History
- 0.1.3 First Working Version.

---
_Source: https://npm.io/package/vue-inspirational-quote · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
