Share via


NavLink.ActiveClass Property

Definition

Gets or sets the CSS class name applied to the NavLink when the current route matches the NavLink href.

public:
 property System::String ^ ActiveClass { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.AspNetCore.Components.Parameter]
public string ActiveClass { get; set; }
[Microsoft.AspNetCore.Components.Parameter]
public string? ActiveClass { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.ActiveClass : string with get, set
Public Property ActiveClass As String

Property Value

Attributes

Applies to