2.19.8 • Published 6 years ago

evergreen-avatar v2.19.8

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Avatar

evergreen-avatar is a package exporting a Avatar React component. Avatars display a circle containing a user profile image. If the image is not available, the initials will be shown.

Design Example

avatar default usage avatar sizes avatar manual usage

Prop types and default props

static propTypes = {
  ...Image.propTypes,
  size: PropTypes.number,
  name: PropTypes.string,
  // hash value defaults to name
  hashValue: PropTypes.string,
  hash: PropTypes.func,
  isSolid: PropTypes.bool,
  appearance: PropTypes.oneOf(keysFillAppearances),
  getInitials: PropTypes.func,
}

static defaultProps = {
  size: 24,
  hash: globalHash,
  isSolid: false,
  getInitials: globalGetInitials,
}
2.19.8

6 years ago

2.19.7

6 years ago

2.19.6

6 years ago

2.19.5

6 years ago

2.19.4

6 years ago

2.19.3

6 years ago

2.19.2

6 years ago

2.19.0

6 years ago

2.18.20

6 years ago

2.18.14

6 years ago

2.18.11

7 years ago

2.18.9

7 years ago

2.18.6

7 years ago

2.13.0

7 years ago

2.10.0

7 years ago

2.9.0

7 years ago

2.6.0

7 years ago