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

@brighthr/component-avatar

Package Overview
Dependencies
Maintainers
0
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.8
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
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 25 Sep 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc