Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Avatar

A photo, initials or an icon.

IzzyBlazor.Avatar in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (11)

Namestring?

The person's or thing's name: the accessible name, and the source of the initials and of their color.

Srcstring?

The image URL. Without one, or if it fails to load, the initials show.

Initialsstring?

Text in place of initials taken from Name, such as "GH" or "+".

IconIconData? (computed)

The icon when there's no name. Defaults to a person.

SizeAvatarSize? (computed)

Size. Defaults to AvatarSize.Md, or the group's size inside an AvatarGroup.

Squarebool = false

Rounded corners in place of a circle, for teams, companies and projects.

AccentAccent?

The color of the initials or icon and what's behind them, as Variant uses it: Accent.Primary, Accent.Of("#0d9488") or Accent.Token("success"). Unset: a color picked from Name, so a person looks the same on every page.

VariantAvatarVariant = AvatarVariant.Soft

AvatarVariant.Soft (the default) tints the background and colors the initials; AvatarVariant.Solid fills it, with initials picked for contrast. A photo covers both.

StatusStatus?

A dot in the corner, such as Status.Success for online. Give it a StatusLabel.

StatusLabelstring?

What the status dot means, for screen readers, such as "Online".

Decorativebool = false

Hides the avatar from screen readers, for when the name is already written beside it.

Events (0)

No events.

Types (4)

Accent

class

The color of a control: buttons, badges, tags, banners, progress bars and menu items. Primary, Neutral and Danger are the roles; emphasis comes from the variant (solid, soft, outline, ghost, link), not from more colors. For one control in another color, use Of (any CSS color) or Token (a theme token); text on it is chosen for contrast.

Accent members
MemberDescription
Primary

The brand color, for the main action.

Neutral

A quiet, gray action.

Danger

A destructive action, such as Delete.

Of(string css)

Any CSS color, such as "#0d9488". Text on it is black or white, whichever reads better.

Token(string name)

A theme token, such as "brand" for --ib-color-brand; text on it uses --ib-color-on-brand when the theme defines it.

From(Color color)

A Color as an accent, such as Color.Success.

AvatarSize

enum

Avatar sizes.

AvatarSize values
ValueDescription
Xs

1.5rem, for dense lists and inline mentions.

Sm

2rem, beside a line of text.

Md

2.5rem (the default).

Lg

3rem.

Xl

4rem.

Xl2

6rem, for a profile header.

AvatarVariant

enum

How an avatar's initials or icon are colored, as on Badge and Tag.

AvatarVariant values
ValueDescription
Soft

A light tint with the color as text (the default).

Solid

Filled with the color, with text picked for contrast.

Status

enum

The meaning of a piece of feedback: badges, and later alerts and toasts. Status colors are for telling people what happened, not for actions; see Accent.

Status values
ValueDescription
Neutral

No particular meaning (the default).

Info

Information, such as "New" or "Beta".

Success

Done or healthy, such as "Published".

Warning

Needs attention, such as "In review" or "Expiring".

Danger

Failed or blocked, such as "Error" or "Overdue".