Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@spectrum-web-components/avatar
Advanced tools
An `<sp-avatar>` is a great way to feature a visual representation of a user.
An <sp-avatar>
is a great way to feature a visual representation of a user.
yarn add @spectrum-web-components/avatar
Import the side effectful registration of <sp-avatar>
via:
import '@spectrum-web-components/avatar/sp-avatar.js';
When looking to leverage the Avatar
base class as a type and/or for extension purposes, do so via:
import { Avatar } from '@spectrum-web-components/avatar';
<sp-avatar
size="50"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
75
<sp-avatar
size="75"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
100
<sp-avatar
size="100"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
200
<sp-avatar
size="200"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
300
<sp-avatar
size="300"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
400
<sp-avatar
size="400"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
500
<sp-avatar
size="500"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
600
<sp-avatar
size="600"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
700
<sp-avatar
size="700"
label="Demo User"
src="https://picsum.photos/500/500"
></sp-avatar>
The label
attribute of the <sp-avatar>
will be passed into the <img>
element as the alt
tag for use in defining a textual representation of the image displayed.
1.0.3 (2024-12-09)
FAQs
An `<sp-avatar>` is a great way to feature a visual representation of a user.
The npm package @spectrum-web-components/avatar receives a total of 1,208 weekly downloads. As such, @spectrum-web-components/avatar popularity was classified as popular.
We found that @spectrum-web-components/avatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.