Anchor
IzzyBlazor.Anchor in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly
and its doc comments.
Properties (7)
Hrefstring requiredWhere it goes.
Externalbool = falseOpens in a new tab (target="_blank" rel="noopener noreferrer"), with an icon after the text.
HideExternalIconbool = falseLeaves out an external link's icon, for repeated links where it would be noise (a list of lessons, say). Screen readers still hear NewTabLabel.
UnderlineAnchorUnderline = AnchorUnderline.AlwaysWhen it's underlined. Defaults to AnchorUnderline.Always.
Inheritbool = falseUses the surrounding text color instead of the accent, still underlined, for links in muted text or on colored backgrounds.
NewTabLabelstring? = "(opens in a new tab)"Read to screen readers after an external link's text. Defaults to "(opens in a new tab)".
ChildContentRenderFragment?The link text.
Item props (from LayoutItemBase)
Margin on all sides, in spacing steps (-16 to 16; one step = 4px).
Width.
Minimum width.
Maximum width.
Growbool = falseWhether to grow into free space inside a Stack, Row or Column: <Box Grow>.
Shrinkbool = trueWhether to shrink when space is short inside a Stack, Row or Column. Defaults to true; Shrink="false" keeps the size.
Starting size inside a Stack, before growing or shrinking.
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.
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.
VisibleFromBreakpoint?Shows the component only from this breakpoint up, such as header links for wide screens.
Events (0)
No events.
Types (1)
AnchorUnderline
enumHow a Anchor is underlined.
| Value | Description |
|---|---|
Always | Always underlined (the default): clearest in running text. |
Hover | Underlined on hover, for links whose color and place already say "link". |
None | Never underlined. |