
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@brighthr/component-avatar
Advanced tools
To install, type the following into the command line at the root of your project:
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 />
Name | Type | Default | Description |
---|---|---|---|
imageHref | string | Sets the src attribute for the <img /> . | |
name | string | Sets 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
To install, type the following into the command line at the root of your project:
The npm package @brighthr/component-avatar receives a total of 220 weekly downloads. As such, @brighthr/component-avatar popularity was classified as not popular.
We found that @brighthr/component-avatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.