---
title: Examples
slug: wip/ovk5-examples
createdAt: 2023-08-22T13:26:04.143Z
---

# Examples

## Basic Usage

Avatars can be displayed in one of five different sizes, but also accept any custom size set via styles.

:::Iframe{iframeHeight="0" code="<iframe src=&#x22;https://codepen.io/redbulldesign/embed/NWeqJaB/983908e1430484cc6e782d6060743126?default-tab=html%2Cresult&#x26;amp;theme-id=39623&#x26;amp;editable=true&#x22; height=&#x22;700px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Framed

Avatar can be framed when it's placed in front of a surface that is not plain light or dark, allowing it to stand out from the background

:::Iframe{iframeHeight="0" code="<iframe src=&#x22;https://codepen.io/redbulldesign/embed/PoXqLQQ/7eec0db00cbb87e64c42b73779d516e2?default-tab=html%2Cresult&#x26;amp;theme-id=39623&#x26;amp;editable=true&#x22; height=&#x22;252px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Initials Fallback

When no image is provided the initials are automatically derived from the given name as a fallback.&#x20;

:::Iframe{iframeHeight="0" code="<iframe src=&#x22;https://codepen.io/redbulldesign/embed/eYbNXQY/544784d7e935c029a31828a06ff7a12b?default-tab=html%2Cresult&#x26;amp;theme-id=39623&#x26;amp;editable=true&#x22; height=&#x22;252px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Appearance

By default, the Avatar adapts to a light mode environment and appears light. In a dark mode environment, we recommend changing the Avatar's appearance to dark instead.

:::Iframe{iframeHeight="0" code="<iframe src=&#x22;https://codepen.io/redbulldesign/embed/vYvOPWm/2fcb386cc41159a0941e1728866a2a76?default-tab=html%2Cresult&#x26;amp;theme-id=39623&#x26;amp;editable=true&#x22; height=&#x22;600px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

