Lowdefy
v3.17.2/display/Avatar/

Avatar

Avatars can be used to represent people or objects. It supports images, Icons, or letters.

id: block_id
type: Avatar

properties:
This attribute defines the alternative text describing the image.
-------
The background color of the avatar if not using a src url. Should be a hex color string. Color is a random color if not specified.
Text to display inside avatar.
Letter type unit distance between left and right sides.
Name of an Ant Design Icon or properties of an Icon block to use an icon in avatar.
Shape of the avatar.
Size of the avatar.
The address of the image for an image avatar.
Css style object to applied to avatar.
type: object
properties:
  events:
    additionalProperties: false
    properties:
      onClick:
        description: Triggered when avatar item is clicked.
        type: array
    type: object
  properties:
    additionalProperties: false
    properties:
      alt:
        description: This attribute defines the alternative text describing the image.
        type: string
      color:
        description: >-
          The background color of the avatar if not using a src url. Should be a
          hex color string. Color is a random color if not specified.
        type: string
      content:
        description: Text to display inside avatar.
        type: string
      gap:
        description: Letter type unit distance between left and right sides.
        type: number
      icon:
        description: >-
          Name of an Ant Design Icon or properties of an Icon block to use an icon
          in avatar.
        type:
          - string
          - object
      shape:
        default: circle
        description: Shape of the avatar.
        enum:
          - circle
          - square
        type: string
      size:
        default: default
        description: Size of the avatar.
        enum:
          - default
          - small
          - large
        type: string
      src:
        description: The address of the image for an image avatar.
        type: string
      style:
        description: Css style object to applied to avatar.
        type: object
    type: object