Socket
Socket
Sign inDemoInstall

@brighthr/component-avatar

Package Overview
Dependencies
3
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthr/component-avatar

To install, type the following into the command line at the root of your project:


Version published
Weekly downloads
694
decreased by-6.97%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Avatar

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-avatar

To implement the Avatar component into your project you’ll need to add the import:

import Avatar from '@brighthr/component-avatar';

After adding import into your project you can use it simply like:

<Avatar />

Props

NameTypeDefaultDescription
imageHrefstringSets the src attribute for the <img />.
namestringSets the initials to be shown if no imageHref is provided. Also sets image alt and tooltip on hover.
presence'in' 'out' 'absent'Sets a different colored circle at the bottom of the avatar.
size'xxs' 'xs' 'sm' 'base' 'lg' 'xl' 'xxl'Sets the size of the avatar.

FAQs

Package last updated on 05 Jun 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc