Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
ChildContent |
RenderFragment |
null | Child content of component. |
Disabled |
bool |
False | If true, the navlink will be disabled. |
Href |
string |
null | The URL, which is the actual link. |
Target |
string |
null | The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename |
Appearance | |||
Color |
Color |
Color.Primary | The color of the component. It supports the theme colors. |
Typo |
Typo |
Typo.body1 | Typography variant to use. |
Underline |
Underline |
Underline.Hover | Controls when the link should have an underline. |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |
EventCallbacks
Name | Type | Description |
---|---|---|
OnClick |
EventCallback<MouseEventArgs> | Link click event. |