Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@asphalt-react/avatar

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asphalt-react/avatar

Avatar

npmnpm
Version
2.0.0-alpha.2
Version published
Weekly downloads
85
-36.09%
Maintainers
4
Weekly downloads
 
Created
Source

Avatar

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

Usage

import Avatar from "@asphalt-react/avatar"

function App() {
  return (
    <Avatar>
      <img
        src="images/avatar.png"
        alt="dummy avatar"
        aria-label="dummy avatar"
      />
    </Avatar>
  )
}

Props

children

Image or letters to display

typerequireddefault
nodetrueN/A

size

Renders the Avatar with the provided size. accepts xxs, xs, s, m, l sizes.

typerequireddefault
enumfalse"m"

Keywords

asphalt

FAQs

Package last updated on 14 Apr 2022

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