View Source PetalComponents.Avatar (petal_components v0.19.7)

Link to this section 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.
  • rest (:global)

Attributes

  • size (:string) - Defaults to "md".
  • class (:string) - CSS class. Defaults to "".
  • avatars (:list) - list of your hosted avatar URLs. Defaults to [].
  • rest (:global)

Link to this section Functions

attributes

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.
  • rest (:global)

attributes

Attributes

  • size (:string) - Defaults to "md".
  • class (:string) - CSS class. Defaults to "".
  • avatars (:list) - list of your hosted avatar URLs. Defaults to [].
  • rest (:global)