Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Alert

A status message about part of a page.

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

Properties (12)

StatusStatus = Status.Info

What the message means; sets the color and icon. Defaults to Status.Info.

VariantAlertVariant = AlertVariant.Soft

How it's drawn. Defaults to AlertVariant.Soft.

Titlestring?

A short bold line above the message.

ChildContentRenderFragment?

The message, and any AlertActions written last.

IconIconData?

An icon in place of the status's own.

HideIconbool = false

Leaves out the icon.

Dismissiblebool = false

Adds a close button. Works with JavaScript off.

@bind-Dismissedbool = false @bind: Interactive only

Whether it has been dismissed. Use @bind-Dismissed on interactive pages.

Announcebool = true

Whether screen readers announce it when it appears (role="alert" for danger and warning, role="status" otherwise). Defaults to true; toasts turn it off because their region announces them.

StatusLabelstring? (computed)

What kind of message it is, read to screen readers before it (the icon and color carry it visually). Defaults to "Info", "Success", "Warning" or "Error" by Status (from IzzyText), and nothing for Neutral. Set it to "" to leave it out.

DismissLabelstring? = "Dismiss"

The close button's accessible name. Defaults to "Dismiss".

Idstring?

The element id. Generated when not set.

Events (0)

No events.

Parts (1)

Components written inside Alert, documented here with it.

AlertActions

Buttons or links below an Alert's message, such as "Retry" or "Details". Write it last in the alert; it's drawn where it is. A row like Row, with Gap, Align, Justify and Wrap (it wraps by default).

GapResponsive<int>Responsive

Space between children, in spacing steps (0 to 16).

AlignResponsive<Align> (computed)Responsive

Cross-axis alignment. Defaults to stretch.

JustifyResponsive<Justify> (computed)Responsive

Main-axis distribution. Defaults to start.

Wrapbool = false

Whether children wrap onto new lines: <Row Wrap>.

Inlinebool = false

Renders as inline-flex so the container sits in a line of text.

Asstring = "div"From Box

The element to render: div on a Box; components built on it set their own (List a ul, Section a section).

ChildContentRenderFragment?From Box

The content.

Types (4)

AlertVariant

enum

How an Alert or toast is drawn.

AlertVariant values
ValueDescription
Soft

A tinted background with a matching border (the default).

Outline

A border in the status color on the page surface.

Solid

A solid status-colored background.

Align

enum

Cross-axis alignment of a Stack's children.

Align values
ValueDescription
Stretch

Children stretch to fill the cross axis.

Start

Aligned to the start.

Center

Centered.

End

Aligned to the end.

Baseline

Aligned on their text baselines.

Justify

enum

Main-axis distribution of a Stack's children.

Justify values
ValueDescription
Start

Packed at the start.

Center

Packed in the center.

End

Packed at the end.

Between

First and last at the edges, equal space between.

Around

Equal space around each child.

Evenly

Equal space between and at the edges.

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