Bloom.Components.Avatar (bloom v0.0.8)

Avatar component using https://avatars.dicebear.com styles.

Can be overridden by an image URL.

Styles available: Adventurer Adventurer Neutral Avataaars Avataaars Neutral Big Ears Big Ears Neutral Big Smile Bottts Bottts Neutral Croodles Croodles Neutral Fun Emoji Icons Identicon Initials Lorelei Lorelei Neutral Micah Miniavs Notionists Notionists Neutral Open Peeps Personas Pixel Art Pixel Art Neutral Rings Shapes Thumbs

Summary

Functions

Attributes

  • name (:string) (required) - Name for avatar and seed for dicebear API.
  • style (:string) - Style for dicebear API. Defaults to "miniavs".
  • img_src (:string) - Image URL - overrides dicebear API.
  • class (:string) - CSS class for parent div. Defaults to "".
  • Global attributes are accepted.

Functions

Link to this function

avatar(assigns)

Attributes

  • name (:string) (required) - Name for avatar and seed for dicebear API.
  • style (:string) - Style for dicebear API. Defaults to "miniavs".
  • img_src (:string) - Image URL - overrides dicebear API.
  • class (:string) - CSS class for parent div. Defaults to "".
  • Global attributes are accepted.