RayCraftDocs
v1.0.3 raycraft.dev
On this page

Avatar

Free

Square user badge: image, initials computed from a name, or a default user icon.

Example

Avatar control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
ColorButtonColor?Primary (default), Secondary, Info, Success, Warning or Danger.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
SizeSizeSmall, Medium (default) or Large; Dialog also has ExtraLarge.
SrcstringImage address.
StylestringInline style added to the root element.
TextstringText content (Tooltip: the tooltip text, Avatar: a name that becomes initials, ListItem: the main line).

Package

Avatar is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.