🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@craydel-v3/craydel-avatar-with-details

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@craydel-v3/craydel-avatar-with-details

A custom Vuetify avatar with details component for Craydel.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

CraydelAvatarWithDetails

Installation

Get the latest version by NPM:

$ npm i @craydel-v3/craydel-avatar-with-details

Component Import

Import the module chosen directly in your component

<script>
  import CraydelAvatarWithDetails from "@craydel-v3/craydel-avatar-with-details/src/CraydelAvatarWithDetails.vue";

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

Props

NameTypeDefaultDescription
photostringundefinedSets the avatar as an image.
display-namestringundefinedGenerates a random color that is applied to the avatar based on the display-name. This also sets the title of the avatar as part of the details.
acronymstringundefinedSets the avatar as an acronym.
textstringundefinedSets the text for the avatar as part of the details.
avatar-sizenumber | string40Sets the height and width of the avatar.
clickablebooleanfalseIf set, the component will be rendered as clickable that has @click handler.
densebooleanfalseReduces the height of the component.

Events

NameDescription
clickEvent that is emitted when the component is clicked.

Usage

An example showing an avatar that will display the name, initials and an email address.

<craydel-avatar-with-details
        display-name="John Doe"
        acronym="JD"
        text="john.doe@gmail.com"
></craydel-avatar-with-details>

Keywords

vuetify3

FAQs

Package last updated on 04 Oct 2023

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