For the complete documentation index, see llms.txt. This page is also available as Markdown.

avatar

Using the avatar component, display a profile photo, company logo, initials, or flags as unique visual identifiers.

avatar
Avatars

Configuration options

Some properties are common to all components, see Common component properties for the properties and their configuration options.

Examples and code snippets

Avatar as children of jig (profile picture)

Avatar - Profile picture
Avatar - Profile picture

This example shows the avatar component in a jig. It can be used for employee headshots, company logos, or flags.

Examples: See the full code sample using static data in GitHub. See the full code sample using dynamic data in GitHub.

Datasources: See the full datasource code sample for static data in GitHub. See the full datasource code sample for dynamic data in GitHub.

children:
  - type: component.avatar
    options:
      title:  ""
      uri: =@ctx.datasources.static-global.picture
      size: large
      align: center
  - type: component.avatar
    options:
      title:  ""
      uri: =@ctx.datasources.static-global.picture
      size: regular
      align: center
  - type: component.avatar
    options:
      title:  ""
      uri: =@ctx.datasources.static-global.picture
      size: small
      align: center
children:
  - type: component.avatar
    options:
      title:  ""
      uri: =@ctx.datasources.dynamic-global.picture
      size: large
      align: center
  - type: component.avatar
    options:
      title:  ""
      uri: =@ctx.datasources.dynamic-global.picture
      size: regular
      align: center
  - type: component.avatar
    options:
      title:  ""
      uri: =@ctx.datasources.dynamic-global.picture
      size: small
      align: center

Avatar as children of jig (initials)

Avatar with initials
Avatar with initials

As in the previous example, we use the avatar component for detail. In this case, we use the initials of the user or employee. It's useful if you don't have a picture of them.

Examples: See the full code sample using static data in GitHub. See the full code sample using dynamic data in GitHub.

Datasources: See the full datasource code sample for static data in GitHub. See the full datasource code sample for dynamic data in GitHub

Last updated

Was this helpful?