Avatar

Easily create avatar to show a visual representation of a user profile using an image element or SVG object based on multiple styles and sizes.

FrankenstyleKit (aka Franken UI 3.0) is now available. Support for the current version will gradually wind down. It will continue to work, but using the latest version is recommended for new projects so you can benefit from future updates and enhancements.

Table of contents

Usage

To get started with the Avatar component, simply wrap your image inside the .uk-avatar and .uk-avatar-image classes.

Rounded

To create a circular avatar, simply apply the uk-avatar-rounded class to the wrapper.

Bordered

To add a border around your avatar, include the uk-avatar-bordered class along with any other modifiers you like.

Initials

If there’s no image available, display initials using the .uk-avatar-text element. This is useful for fallback states or text-based avatars.

  • RM
    RM
    RM

Dot indicator

To indicate status or notifications, you can add a small dot using the uk-avatar-dot class. Or, choose one of the following classes to reposition the dot indicator:

ClassPosition
uk-avatar-dot-topTop center
uk-avatar-dot-top-leftTop left
uk-avatar-dot-top-rightTop right
uk-avatar-dot-rightRight center
uk-avatar-dot-bottomBottom center
uk-avatar-dot-bottom-leftBottom left
uk-avatar-dot-bottom-rightBottom right
uk-avatar-dot-leftLeft center

Stacked

Stack multiple avatars together to represent a group or team. Use flex utilities and negative spacing to achieve the overlapping effect.

Customize

Customize your Franken UI experience.