New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-initials-placeholder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-initials-placeholder

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

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

vue-initials-placeholder

License: MIT

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

preview image

Installation

# yarn
yarn add vue-initials-placeholder

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

Usage

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

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

<template>
  <div>
    <VueInitialsPlaceholder value="Emmanuel Raymond"/>
  </div>
</template>

Props

NameTypeDefaultDescriptionRequired
valueStringnullThe name you want to parse as placeholdertrue
bgColorString#4285F4Background color - [color name, rgb or hex]false
sizeString40The width and height of the container that contains the initials in pxfalse
textColorString#fffText color of the initials - [color name, rgb or hex]false
fontSizeString18Font size of the initials in pxfalse

Acknowledgement

This package was inspired by Initials-placeholder-react

Contributing

If you would like to report bugs or request a feature, please create a new issue.

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

Keywords

FAQs

Package last updated on 06 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc