# RadzenFabMenu Class

RadzenFabMenu component.

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)
- RadzenFabMenu

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

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

## Examples

```razor
<RadzenFabMenu Icon="add" ToggleIcon="close" AriaLabel="Open menu">
    <RadzenFabMenuItem Text="Folder" Icon="folder" Click=@(args => Console.WriteLine("Folder clicked")) />
    <RadzenFabMenuItem Text="Chat" Icon="chat" Click=@(args => Console.WriteLine("Chat clicked")) />
</RadzenFabMenu>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenFabMenu()` | RadzenFabMenu component. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| AriaLabel | `string` | Gets or sets the aria-label for the toggle button. |
| ButtonClass | `string` | Gets or sets the button class. |
| ButtonStyle | [`ButtonStyle`](https://blazor.radzen.com/docs/api/Radzen.ButtonStyle.md) | Gets or sets the button style. |
| ButtonStyleCss | `string` | Gets or sets the button style CSS. |
| ChildContent | `RenderFragment` | Gets or sets the child content. |
| Direction | [`FabMenuDirection`](https://blazor.radzen.com/docs/api/Radzen.FabMenuDirection.md) | Gets or sets the direction in which the menu items expand. |
| Disabled | `bool` | Gets or sets a value indicating whether this [RadzenFabMenu](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenFabMenu.md) is disabled. |
| Gap | `string` | Gets or sets the gap. |
| Icon | `string` | Gets or sets the icon. |
| IsOpen | `bool` | Gets or sets a value indicating whether the menu is open. |
| IsOpenChanged | `EventCallback<bool>` | Gets or sets the IsOpen changed callback. |
| ItemsStyle | `string` | Gets or sets the items style. |
| Shade | [`Shade`](https://blazor.radzen.com/docs/api/Radzen.Shade.md) | Gets or sets the shade. |
| Size | [`ButtonSize`](https://blazor.radzen.com/docs/api/Radzen.ButtonSize.md) | Gets or sets the size. |
| ToggleButtonStyle | [`ButtonStyle`](https://blazor.radzen.com/docs/api/Radzen.ButtonStyle.md) | Gets or sets the button toggled style. |
| ToggleIcon | `string` | Gets or sets the toggle icon. |
| ToggleShade | [`Shade`](https://blazor.radzen.com/docs/api/Radzen.Shade.md) | Gets or sets the button toggled shade. |
| Variant | [`Variant`](https://blazor.radzen.com/docs/api/Radzen.Variant.md) | Gets or sets the variant. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `CloseAsync()` | `Task` | Closes the menu. |
| `Dispose()` | `void` |  |
| `OnAfterRenderAsync(bool firstRender)` | `Task` |  |
| `OnBecameInvisible()` | `void` |  |
| `OpenAsync(bool focusFirstItem)` | `Task` | Opens the menu. Pass true to move focus to the first item once the items render, which is what a keyboard user expects when opening the menu with the arrow keys; the client calls it that way. Parameters: `focusFirstItem`: Whether to focus the first menu item after the menu opens. |
| `SetParametersAsync(ParameterView parameters)` | `Task` |  |
| `ToggleAsync()` | `Task` | Toggles the menu open/closed state. |

## Inherited Members

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

