How to use the hig-vanilla.Avatar.AvailableSizes function in hig-vanilla

To help you get started, we’ve selected a few hig-vanilla examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Autodesk / hig / packages / react / src / adapters / AvatarAdapter.js View on Github external
)}
      
    );
  }
}

AvatarAdapter.propTypes = {
  /**
   * The name for the avatar
   */
  name: PropTypes.string.isRequired,
  /**
   * small, medium, large or extralarge
   */
  size: PropTypes.oneOf(VanillaAvatar.AvailableSizes).isRequired,
  /**
   * Url to a profile image
   */
  image: PropTypes.string
};