Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Tag

A keyword or filter, linked or removable.

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

Properties (10)

Labelstring?

The text. Also used in the remove button's name.

ChildContentRenderFragment?

Custom content in place of Label.

StatusStatus = Status.Neutral

The color's meaning. Defaults to Status.Neutral.

AccentAccent?

A color in place of Status's, such as Accent.Primary or Accent.Of("#0d9488").

VariantTagVariant = TagVariant.Soft

Visual weight. Defaults to TagVariant.Soft.

SizeControlSize = ControlSize.Md

Size: 20, 24 (the default) or 28px tall.

StartIconIconData?

An icon before the text.

Hrefstring?

Makes the tag's text a link.

RemoveHrefstring?

Adds a remove link to this address, such as the current page without this filter. Used on static pages, and on interactive ones when there's no OnRemove.

RemoveLabelstring? = "Remove"

The remove control's name, before the label: "Remove Blazor". Defaults to "Remove". With only ChildContent and no Label, the name is just this, so give tags in a list a Label too.

Events (1)

OnRemoveEventCallbackInteractive only

Adds a remove button that runs this on interactive pages. Static pages need RemoveHref to show a remove control; a prerender shows that link where there is one, else the button, inert until the page is interactive, so the tag keeps its width.

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.

ControlSize

enum

The height of interactive controls. Shared by buttons and form fields, so a button and an input of the same size line up in a row.

ControlSize values
ValueDescription
Sm

32px tall, small text.

Md

36px tall (the default).

Lg

44px tall, large text. For touch-first and marketing pages.

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

TagVariant

enum

A tag's visual weight.

TagVariant values
ValueDescription
Soft

A light tint of the color (the default).

Solid

Filled with the color.

Outline

A colored border.