# RadzenProfileMenuItem Class

A menu item component used within RadzenProfileMenu to define individual navigation or action items. RadzenProfileMenuItem represents one clickable item in a profile menu dropdown with support for icons, navigation, and custom content. Used inside RadzenProfileMenu to create user profile dropdown menus. Each item can navigate to a page (via Path), trigger an action (via click event), or display custom content (via Template). Common uses in profile menus include account settings, user profile page, logout/sign out, preferences, and help/documentation. Items support icons, images, text, and custom templates for flexible rendering.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- RadzenProfileMenuItem

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenProfileMenuItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Examples

Profile menu items in a profile menu:

```razor
<RadzenProfileMenu>
    <Template>
        <RadzenIcon Icon="account_circle" /> John Doe
    </Template>
    <ChildContent>
        <RadzenProfileMenuItem Text="Profile" Icon="person" Path="/profile" />
        <RadzenProfileMenuItem Text="Settings" Icon="settings" Path="/settings" />
        <RadzenProfileMenuItem Text="Logout" Icon="logout" Value="logout" />
    </ChildContent>
</RadzenProfileMenu>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenProfileMenuItem()` | A menu item component used within RadzenProfileMenu to define individual navigation or action items. RadzenProfileMenuItem represents one clickable item in a profile menu dropdown with support for icons, navigation, and custom content. Used inside RadzenProfileMenu to create user profile dropdown menus. Each item can navigate to a page (via Path), trigger an action (via click event), or display custom content (via Template). Common uses in profile menus include account settings, user profile page, logout/sign out, preferences, and help/documentation. Items support icons, images, text, and custom templates for flexible rendering. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Action | `string` | Specifies the form action attribute. When set the item renders a form with a submit button that submits to the specified URL. The form includes the antiforgery token when the application provides one and Method is not get. |
| Icon | `string` | Gets or sets the icon. |
| IconColor | `string` | Gets or sets the icon color. |
| Image | `string` | Gets or sets the image. |
| ImageAlternateText | `string` | Gets or sets the text. |
| Match | `Routing.NavLinkMatch` | Gets or sets the navigation link match. |
| Menu | [`RadzenProfileMenu`](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenProfileMenu.md) | Gets or sets the menu. |
| Method | `string` | Specifies the form method attribute. Used together with Action. Defaults to post. |
| Parent | [`RadzenProfileMenu`](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenProfileMenu.md) | Gets or sets the parent. |
| Path | `string` | Gets or sets the path. |
| Target | `string` | Gets or sets the target. |
| Template | `RenderFragment` | Gets or sets the template. |
| Text | `string` | Gets or sets the text. |
| Value | `string` | Gets or sets the value. |

### Action example

```razor
<RadzenProfileMenuItem Text="Sign out" Icon="power_settings_new" Action="Account/Logout" />
```

### Method example

```razor
<RadzenProfileMenuItem Text="Sign out" Icon="power_settings_new" Method="post" Action="Account/Logout" />
```

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `GetComponentCssClass()` | `string` |  |
| `OnClick(MouseEventArgs args)` | `Task` | Handles the click event. Parameters: `args`: The MouseEventArgs instance containing the event data. |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Dispose, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnAfterRenderAsync, OnBecameInvisible, OnContextMenu, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, SetParametersAsync, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

