Button that opens a list of actions. Closes on selection, Escape or a click outside.
Example
Parameters
Menu
Parameter
Type
Description
AlignEnd
bool
Aligns the list with the right edge of the button instead of the left (Menu); Auto placement already moves it when it would leave the window.
ButtonVariant
Variant
Variant of the button that opens the menu.
ChildContent
RenderFragment
Content rendered inside the component.
Class
string
Extra CSS classes added to the root element.
Icon
IconName?
Icon to show (IconName).
Label
string
Visible label text (charts: accessible name; IconButton: accessible name and tooltip).
Placement
MenuPlacement
Top (default), Bottom, Left or Right.
Style
string
Inline style added to the root element.
Trigger
RenderFragment
Content of the button that opens the menu (for example an Avatar and a name). Replaces the label and the chevron; set Label for the accessible name (Menu).
MenuItem
Parameter
Type
Description
ChildContent
RenderFragment
Content rendered inside the component.
Class
string
Extra CSS classes added to the root element.
Disabled
bool
Disables interaction.
Icon
IconName?
Icon to show (IconName).
Style
string
Inline style added to the root element.
MenuDivider
Parameter
Type
Description
Class
string
Extra CSS classes added to the root element.
Style
string
Inline style added to the root element.
Events
MenuItem
Event
Type
Description
OnClick
EventCallback<MouseEventArgs>
Raised when the button is clicked.
Package
Menu is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.