View Source PetalComponents.Avatar (petal_components v1.9.2)

Summary

Functions

Attributes

  • src (:string) - hosted avatar URL. Defaults to nil.
  • size (:string) - Defaults to "md".
  • class (:string) - CSS class. Defaults to "".
  • name (:string) - name for placeholder initials. Defaults to nil.
  • random_color (:boolean) - generates a random color for placeholder initials avatar. Defaults to false.
  • Global attributes are accepted.

Attributes

  • size (:string) - Defaults to "md".
  • class (:string) - CSS class. Defaults to "".
  • avatars (:list) - list of your hosted avatar URLs. Defaults to [].
  • Global attributes are accepted.

Functions

Attributes

  • src (:string) - hosted avatar URL. Defaults to nil.
  • size (:string) - Defaults to "md".
  • class (:string) - CSS class. Defaults to "".
  • name (:string) - name for placeholder initials. Defaults to nil.
  • random_color (:boolean) - generates a random color for placeholder initials avatar. Defaults to false.
  • Global attributes are accepted.

Attributes

  • size (:string) - Defaults to "md".
  • class (:string) - CSS class. Defaults to "".
  • avatars (:list) - list of your hosted avatar URLs. Defaults to [].
  • Global attributes are accepted.