@spectrum-web-components/avatar
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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="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>

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.0-rc.100rc
1.0.1160latest
1.1.0-beta.390beta

Version History

VersionDownloads (Last 7 Days)Published
1.1.0-beta.390
1.1.0-beta.3849
1.1.0-beta.3747
1.1.0-beta.3651
1.1.0-beta.3555
1.1.0-beta.3446
1.1.0-beta.3352
1.1.0-beta.329
1.1.0-beta.311
1.1.0-beta.300
1.1.0-beta.291
1.0.1160
1.1.0-beta.282
1.1.0-beta.271
1.1.0-beta.260
1.1.0-beta.251
1.1.0-beta.242
1.1.0-beta.232
1.1.0-beta.222
1.1.0-beta.211
1.1.0-beta.201
1.1.0-beta.190
1.1.0-beta.180
1.1.0-beta.171
1.1.0-beta.160
1.1.0-beta.150
1.1.0-beta.141
1.1.0-beta.130
1.1.0-beta.121
1.1.0-beta.110
1.1.0-beta.101
1.1.0-beta.91
1.1.0-beta.81
1.1.0-beta.71
1.1.0-beta.60
1.1.0-beta.50
1.1.0-beta.40
1.1.0-beta.30
1.1.0-beta.20
1.1.0-beta.10
1.1.0-beta.00
1.0.01
0.50.0-beta.121
0.50.0-beta.110
0.50.0-beta.100
0.50.0-beta.90
1.0.0-rc.100
1.0.0-rc.90
1.0.0-rc.80
1.0.0-rc.70
1.0.0-rc.61
1.0.0-rc.50
1.0.0-rc.40
1.0.0-rc.30
0.50.0-beta.80
0.50.0-beta.70
0.50.0-beta.61
0.50.0-beta.50
1.0.0-rc.20
1.0.0-rc.10
0.50.0-beta.40
0.50.0-beta.30
0.50.0-beta.20
1.0.0-rc.00
0.50.0-beta.10
0.50.0-beta.00
0.49.0-beta.20
0.49.028
0.49.0-beta.10
0.49.0-beta.00
0.48.139
0.48.0-beta.20
0.48.0-beta.10
0.48.0-beta.00
0.48.00
0.47.212
0.47.118
0.47.08
0.46.00
0.45.0162
0.44.00
0.43.057
0.42.5301
0.42.40
0.42.32
0.42.23
0.42.10
0.42.00
0.41.219
0.41.10
0.41.0227
0.40.58
0.40.43
0.40.30
0.40.20
0.40.10
0.40.00
0.39.41,381
0.39.30
0.39.20
0.39.10
0.39.00
0.38.00
0.37.06
0.36.00
0.35.1-rc.430
0.35.1-rc.410
0.35.1-rc.340
0.35.1-rc.260
0.35.1-rc.250
0.35.1-rc.240
0.35.1-rc.150
0.35.01
0.34.1-rc.00
0.34.00
0.33.3-overlay.660
0.33.3-overlay.650
0.33.3-overlay.610
0.33.20
0.33.1-overlay.410
0.33.1-overlay.390
0.33.00
0.32.1-overlay.410
0.32.1-overlay.330
0.32.00
0.31.1-react.210
0.31.1-react.30
0.31.1-react.20
0.31.1-react.10
0.31.1-overlay.290
0.31.032
0.30.1-overlay.420
0.30.1-overlay.410
0.30.1-overlay.400
0.30.1-overlay.380
0.30.1-overlay.370
0.30.1-overlay.310
0.30.1-overlay.300
0.30.08
0.11.5-overlay.180
0.11.5-overlay.170
0.11.5-overlay.150
0.11.5-overlay.140
0.11.5-overlay.130
0.11.5-overlay.120
0.11.5-overlay.110
0.11.5-overlay.100
0.11.40
0.11.31
0.11.3-overlay.220
0.11.3-overlay.90
0.11.3-overlay.80
0.11.20
0.11.2-overlay.80
0.10.6-react.750
0.11.11
0.11.00
0.10.6-react.500
0.10.6-react.490
0.10.6-react.480
0.10.6-react.320
0.10.50
0.10.5-overlay-warning.190
0.10.40
0.10.3-react.540
0.10.35
0.10.20
0.10.10
0.10.00
0.9.13-devmode2.00
0.9.13-devmode.00
0.10.0-devmode.00
0.9.12-devmode.70
0.9.12-devmode.00
0.9.110
0.9.100
0.9.90
0.9.80
0.9.70
0.9.60
0.9.50
0.9.40
0.9.4-express.90
0.9.30
0.9.3-express.120
0.9.20
0.9.2-express.410
0.9.10
0.9.00
0.8.11
0.8.1-lit-next.00
0.8.00
0.7.10-lit-next.470
0.7.10-lit-next.240
0.7.10-lit-next.00
0.7.92
0.7.9-lit-next.420
0.7.9-lit-next.00
0.7.80
0.7.8-beta.710
0.7.8-alpha.690
0.7.8-alpha.400
0.7.8-alpha.10
0.7.70
0.7.7-alpha.590
0.7.7-alpha.10
0.7.60
0.7.6-alpha.740
0.7.6-alpha.730
0.7.6-alpha.720
0.7.6-alpha.610
0.7.6-alpha.270
0.7.6-alpha.00
0.7.50
0.7.40
0.7.4-alpha.260
0.7.4-alpha.230
0.7.4-alpha.210
0.7.4-alpha.170
0.7.4-beta.170
0.7.4-beta.160
0.7.4-beta.150
0.7.4-beta.140
0.7.4-beta.130
0.7.4-beta.120
0.7.4-alpha.120
0.7.4-alpha.110
0.7.4-beta.110
0.7.4-beta.100
0.7.4-alpha.90
0.7.30
0.7.20
0.7.10
0.7.00
0.6.1-alpha.700
0.6.10
0.6.00
0.5.0-alpha.400
0.5.00
0.4.4-alpha.1780
0.4.4-alpha.1690
0.4.4-alpha.850
0.4.4-alpha.841
0.4.4-alpha.600
0.4.30
0.4.3-alpha.00
0.4.20
0.4.2-beta.170
0.4.2-alpha.171
0.4.10
0.4.00
0.3.2-alpha.770
0.3.20
0.3.10
0.3.01
0.2.7-alpha.380
0.2.60
0.2.50
0.2.5-alpha.110
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.00

Package Sidebar

Install

npm i @spectrum-web-components/avatar

Weekly Downloads

2,822

Version

1.0.1

License

Apache-2.0

Unpacked Size

131 kB

Total Files

48

Last publish

Collaborators

  • hunterloftis
  • westbrook
  • benjamind
  • cuberoot
  • beeduul
  • caseyisonit
  • taratadobe
  • rajrock38
  • jnjosh
  • pvashish
  • nikkimk
  • rubenc
  • jianliao79