AvatarAttributes

Attribute names of <vaadin-avatar>, for use with setAttribute.

Properties

Link copied to clipboard
const val abbr: String

A shortened form of name that is displayed in the avatar when img is not provided.

Link copied to clipboard
const val colorIndex: String

Color index used for avatar background.

Link copied to clipboard
const val i18n: String

The object used to localize this component. To change the default localization, replace this with an object that provides all properties, or just the individual properties you want to change.

Link copied to clipboard
const val img: String

The path to the image

Link copied to clipboard
const val name: String

Full name of the user used for the tooltip of the avatar.

Link copied to clipboard
const val theme: String

The theme variants to apply to the component.

Link copied to clipboard
const val withTooltip: String

When true, the avatar has tooltip shown on hover and focus. The tooltip text is based on the name and abbr properties. When neither is provided, i18n.anonymous is used instead.