Tag
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.NeutralThe color's meaning. Defaults to Status.Neutral.
VariantTagVariant = TagVariant.SoftVisual weight. Defaults to TagVariant.Soft.
SizeControlSize = ControlSize.MdSize: 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.
Plus 16 item props and 4 common props.
Show them hereEvents (1)
OnRemoveEventCallbackAdds 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
classThe 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.
| Member | Description |
|---|---|
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 |
Token(string name) | A theme token, such as |
From(Color color) | A |
ControlSize
enumThe 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.
| Value | Description |
|---|---|
Sm | 32px tall, small text. |
Md | 36px tall (the default). |
Lg | 44px tall, large text. For touch-first and marketing pages. |
Status
enumThe 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.
| Value | Description |
|---|---|
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
enumA tag's visual weight.
| Value | Description |
|---|---|
Soft | A light tint of the color (the default). |
Solid | Filled with the color. |
Outline | A colored border. |