Blazorise Link API
Explore the Blazorise Link API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Link documentation.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
AriaLabelledBy | — | string |
Specifies the aria-labelledby attribute value. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this Link. | ||
Disabled | false | bool |
Makes the link look inactive by adding the disabled boolean attribute. | ||
Match | Match.Prefix | Match |
URL matching behavior for a link. Possible values: PrefixAll | ||
Role | — | string |
Specifies the role attribute value. | ||
Stretched | false | bool |
Makes any HTML element or component clickable by “stretching” a nested link. | ||
TabIndex | null | int? |
Specifies whether the link element can be focused and where it participates in sequential keyboard navigation. | ||
Target | Target.Default | Target |
The target attribute specifies where to open the linked document. | ||
Title | — | string |
Specify extra information about the element. | ||
To | — | string |
Denotes the target route of the link. | ||
Unstyled | false | bool |
Removes default color styles from the link. | ||
Events
| Event | Type |
|---|---|
Clicked | EventCallback<MouseEventArgs> |
Notifies when the link is clicked. | |
CustomMatch | Func<string, bool> |
A callback function that is used to compare current uri with the user defined uri. If defined, the Match parameter will be ignored. | |
KeyDown | EventCallback<KeyboardEventArgs> |
Handles the onkeydown event. | |