Skip to content

OcAvatar component

Description

The OcAvatar component is a thumbnail that is usually representing a user or a group. It can either be an image or the initials of a given username. There are a few variants of the component that can be used in specific contexts. See the examples below.

If you want to use multiple avatar items in one container, have a look at OcAvatars.

Accessibility

The component can be provided with an accessible-label in case the avatar is used alone. In case the avatar is used next to a username or display name, it should be left empty. If not specified, an avatar will get aria-hidden="true".

Examples

Default

Variants

Properties

Emits

Slots