# vue-initials-placeholder

> A Vue component that uses parsed initials as placeholders. Can be used as a substitute for absent user profile photo

Latest version **1.0.1** (published 2020-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-initials-placeholder
pnpm add vue-initials-placeholder
yarn add vue-initials-placeholder
bun add vue-initials-placeholder
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-11-06 |
| First published | 2020-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 25.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Emmanuel Raymond |
| Maintainers | peoray |
| Keywords | vue, component, vue-component, initials-placeholder |

## Links

- npm: https://www.npmjs.com/package/vue-initials-placeholder
- Repository: https://github.com/peoray/vue-initials-placeholder
- Homepage: https://github.com/peoray/vue-initials-placeholder#readme
- Issues: https://github.com/peoray/vue-initials-placeholder/issues
- npm.io page: https://npm.io/package/vue-initials-placeholder

## Recent versions

- 1.0.1 (latest) — 2020-11-06
- 1.0.0 — 2020-11-05

## README

# vue-initials-placeholder

 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

> A vue component that uses parsed initials as placeholders. Can be used as a substitute for absent user profile photo.

![preview image](preview.png)

## Installation
```bash
# yarn
yarn add vue-initials-placeholder

# npm
npm i --save vue-initials-placeholder
```

## Usage

```js
<script>
import VueInitialsPlaceholder from 'vue-initials-placeholder.vue'

export default {
  components: {
    VueInitialsPlaceholder
  }
}
</script>

<template>
  <div>
    <VueInitialsPlaceholder value="Emmanuel Raymond"/>
  </div>
</template>
```
### Props

|Name|Type|Default|Description|Required
|---|---|---|---|---|
|value|String|null|The name you want to parse as placeholder   | true 
|bgColor|String|#4285F4|Background color - [color name, rgb or hex] | false
|size|String|40|The width and height of the container that contains the initials in px| false
|textColor|String|#fff|Text color of the initials - [color name, rgb or hex]| false
|fontSize|String|18|Font size of the initials in px|false

## Acknowledgement

This package was inspired by [Initials-placeholder-react](https://github.com/ozorku/Initials-placeholder-react)

## Contributing
If you would like to report bugs or request a feature, please create a new [issue](https://github.com/peoray/vue-initials-placeholder/issues/new).
 
If you'd like to contribute to the code:

- Fork it!
- Create your feature branch: `git checkout -b feature-name`
- Commit your changes: `git commit -am 'Some commit message'`
- Push to the branch: `git push origin feature-name`
- Submit a pull request!

## License
This project is released under the terms of the [MIT](LICENSE) License

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