Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Badge

A small label for a status, category or count.

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

Properties (8)

StatusStatus = Status.Neutral

What the badge means. Defaults to Status.Neutral.

AccentAccent?

A color in place of Status's, such as Accent.Primary for a brand-colored count, Accent.Of("#0d9488") or Accent.Token("brand").

VariantBadgeVariant = BadgeVariant.Soft

Visual weight. Defaults to BadgeVariant.Soft.

SizeBadgeSize = BadgeSize.Md

Size. Defaults to BadgeSize.Md.

Pillbool = false

Fully rounded ends, for counts.

Dotbool = false

A colored dot before the text, for statuses.

StartIconIconData?

An icon before the text.

ChildContentRenderFragment?

The text.

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.

BadgeSize

enum

Badge sizes.

BadgeSize values
ValueDescription
Sm

Compact, for counts in navigation.

Md

The default.

BadgeVariant

enum

A badge's visual weight.

BadgeVariant values
ValueDescription
Soft

A light tint of the color (the default).

Solid

Filled with the color.

Outline

A colored border.

Plain

Just the text, in the color's text shade, with no fill or border: a quiet count, such as the totals beside sidebar links. Neutral is a muted gray.

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".