Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brighthr/component-avatar

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

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:

  • 1.1.4
  • npm
  • Socket score

Version published
Weekly downloads
307
decreased by-13.28%
Maintainers
1
Weekly downloads
 
Created
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 22 Dec 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

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