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

vue-profile-avatar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-profile-avatar

Minimalist avatar component for Vue 3

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
485
increased by11.75%
Maintainers
1
Weekly downloads
 
Created
Source

#vue-profile-avatar

Banner

An minimalist avatar component for Vue 3.

  • Colors decided by initial of username.
  • You can customize all colors.

Installation

npm install vue-profile-avatar

// or

yarn add vue-profile-avatar

Usage

ES6


import ProfileAvatar from 'vue-profile-avatar'

export default {
  ...
  components: {
    ProfileAvatar
  },
  ...
}

Then:

<ProfileAvatar username="Lorem Ipsum"></ProfileAvatar>

Configuration

Component props

username
  • Type: String
  • Description: Username required for getting background and text color.
  • Required: true
size
  • Type: String
  • Description: Size of the avatar. Can be s, m, or l.
  • Default: s
  • Required: false
border
  • Type: Boolean
  • Description: false if you don't want border.
  • Default: true
  • Required: false
bgColor
  • Type: ColorHex
  • Description: Custom background color.
  • Required: false
borderColor
  • Type: ColorHex
  • Description: Custom border color.
  • Required: false
textColor
  • Type: ColorHex
  • Description: Custom text color.
  • Required: false
colorType
  • Type: Stirng
  • Description: Type of palette colors for your avatars. Can be normal, pastel, or brownie.
  • Default: normal
  • Required: false

FAQs

Package last updated on 02 Apr 2022

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