
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@asphalt-react/avatar
Advanced tools
Avatar component is used to represent people or objects. It can also be used to provide additional visual information about a user. It supports images, SVGs and lettered initials. Avatar renders its background color if image size is smaller.
Avatar is compatible with raster images, SVG or @asphalt-react/iconpack
import Avatar from "@asphalt-react/avatar"
function App() {
return (
<Avatar>
<img
src="images/avatar.png"
alt="dummy avatar"
aria-label="dummy avatar"
/>
</Avatar>
)
}
Image or letters to display
type | required | default |
---|---|---|
node | true | N/A |
Renders the Avatar with the provided size. accepts xxs, xs, s, m, l sizes.
type | required | default |
---|---|---|
enum | false | "m" |
FAQs
Avatar
The npm package @asphalt-react/avatar receives a total of 80 weekly downloads. As such, @asphalt-react/avatar popularity was classified as not popular.
We found that @asphalt-react/avatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.