User avatar
The picture of the signed-in person, or the initials when the profile has no picture.
Installation
- npm
- pnpm
- Yarn
- Bun
npm install @lumoauth/react
pnpm add @lumoauth/react
yarn add @lumoauth/react
bun add @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
| Prop | Type | Description |
|---|---|---|
size | number | Width and height in pixels. |
shape | 'circle' | 'square' | The outline of the avatar. |
appearance | AppearanceProps | Theme, CSS variables and class name for this component. The initials use --la-primary-text on --la-primary. |