1.12.3 • Published 2 years ago

@patternfly/pfe-avatar v1.12.3

Weekly downloads
259
License
MIT
Repository
github
Last release
2 years ago

PatternFly Elements Avatar

<pfe-avatar> is an element for displaying a user's avatar image. If the user in question has provided a custom avatar, provide it and it will be displayed. If they don't, a nice colored pattern will be generated based on their name. A specific name will always generate the same pattern, so users' avatars will stay static without the need for storing their generated image.

Read more about Avatar in the PatternFly Elements Avatar documentation

Installation

Load <pfe-avatar> via CDN:

<script src="https://unpkg.com/@patternfly/pfe-avatar?module"></script>

Or, if you are using NPM, install it

npm install @patternfly/pfe-avatar

Then once installed, import it to your application:

import '@patternfly/pfe-avatar';

Usage

<pfe-avatar name="Eleanore Stillwagon"></pfe-avatar>

<pfe-avatar name="Libbie Koscinski" shape="rounded" pattern="squares"></pfe-avatar>

<pfe-avatar name="Blanca Rohloff" pattern="triangles"></pfe-avatar>

<pfe-avatar name="Edwardo Lindsey" src="https://clayto.com/2014/03/rgb-webgl-color-cube/colorcube.jpg"></pfe-avatar>
2.0.0-next.3

2 years ago

2.0.0-next.2

2 years ago

2.0.0-next.1

3 years ago

1.12.3

3 years ago

2.0.0-next.0

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.0

4 years ago

1.6.0

4 years ago

1.7.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.0-test.1

6 years ago

0.0.0-test.0

6 years ago