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.

Item props (from LayoutItemBase)

MarginResponsive<int>Responsive

Margin on all sides, in spacing steps (-16 to 16; one step = 4px).

MarginXResponsive<int>Responsive

Horizontal margin. When set, replaces Margin on this axis.

MarginYResponsive<int>Responsive

Vertical margin. When set, replaces Margin on this axis.

MarginTopResponsive<int>Responsive

Top margin. When set, replaces MarginY and Margin on this side.

MarginBottomResponsive<int>Responsive

Bottom margin. When set, replaces MarginY and Margin on this side.

MarginStartResponsive<int>Responsive

Margin at the start (left in left-to-right text, right in right-to-left). Replaces MarginX and Margin on this side.

MarginEndResponsive<int>Responsive

Margin at the end (right in left-to-right text, left in right-to-left). Replaces MarginX and Margin on this side.

WidthResponsive<Length>Responsive

Width.

MinWidthResponsive<Length>Responsive

Minimum width.

MaxWidthResponsive<Length>Responsive

Maximum width.

Growbool = false

Whether to grow into free space inside a Stack, Row or Column: <Box Grow>.

Shrinkbool = true

Whether to shrink when space is short inside a Stack, Row or Column. Defaults to true; Shrink="false" keeps the size.

BasisResponsive<Length>Responsive

Starting size inside a Stack, before growing or shrinking.

AlignSelfResponsive<Align>Responsive

Alignment across the parent's direction, overriding the parent's Align for this component only, such as a button lined up with the bottom of labeled fields in a Row.

ColSpanResponsive<int>Responsive

How many columns it spans in a Form or Fieldset with Columns, or a Grid; GridSpan.Full for the whole row. Never more than the columns shown, so a form that narrows to one column needs no breakpoints.

NewRowbool = false

Starts a new row in a Form or Fieldset with Columns, or a Grid, leaving the rest of the row before it empty.

Common props (from IzzyComponentBase)

Classstring?

Extra CSS classes, merged after the component's own classes.

Stylestring?

Inline style, appended after the component's generated custom properties.

HiddenFromBreakpoint?

Hides the component from this breakpoint up, such as a menu button only phones need.

VisibleFromBreakpoint?

Shows the component only from this breakpoint up, such as header links for wide screens.

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