Socket
Socket
Sign inDemoInstall

@spectrum-web-components/avatar

Package Overview
Dependencies
Maintainers
6
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/avatar

An `<sp-avatar>` is a great way to feature a visual representation of a user.


Version published
Maintainers
6
Created
Source

Description

An <sp-avatar> is a great way to feature a visual representation of a user.

Usage

See it on NPM! How big is this package in your project? Try it on webcomponents.dev

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';

Sizes

50
<sp-avatar
    size="50"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
75
<sp-avatar
    size="75"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
100
<sp-avatar
    size="100"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
200
<sp-avatar
    size="200"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
300
<sp-avatar
    size="300"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
400
<sp-avatar
    size="400"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
500
<sp-avatar
    size="500"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
600
<sp-avatar
    size="600"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>
700
<sp-avatar
    size="700"
    label="Dog the User"
    src="https://place.dog/500/500"
></sp-avatar>

Accessibility

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.

Keywords

FAQs

Package last updated on 12 Jul 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc