Skip to main content

User avatar

The picture of the signed-in person, or the initials when the profile has no picture.

ComponentReadyView source
Works with
ReactNext.js

Installation​

npm install @lumoauth/react

Usage​

import { UserAvatar } from '@lumoauth/react';

<UserAvatar size={40} shape="circle" />

The picture is the picture claim of the UserInfo response. Without it, the component shows the initials of the name.

Props​

PropTypeDescription
sizenumberWidth and height in pixels.
shape'circle' | 'square'The outline of the avatar.
appearanceAppearancePropsTheme, CSS variables and class name for this component. The initials use --la-primary-text on --la-primary.