Button that opens a menu of actions.
With Text it is a secondary button with an arrow; without text it is a quiet icon button («⋮»), ideal at the end of a row or a card. The menu is painted in the browser's top layer, so grids, modals and scrolling containers don't clip it. Keyboard: Enter, Space or Arrow down open it, the arrows move through the options and Esc closes it.
@using Astrol.Component.Basic.Dropdown <AstrolDropdown Text="Actions" Icon="astrol-cog" Align="AstrolDropdownAlign.Start"> <AstrolDropdownItem Text="Edit" Icon="astrol-pencil" Shortcut="Ctrl+E" OnClick="Edit" /> <AstrolDropdownItem Text="Duplicate" Icon="astrol-clone" OnClick="Duplicate" /> <AstrolDropdownItem Text="Archive" Icon="astrol-archive" Disabled="true" /> <AstrolDropdownSeparator /> <AstrolDropdownItem Text="Delete" Icon="astrol-trash" Danger="true" OnClick="Delete" /></AstrolDropdown> @* Without Text: icon-only button (⋮), e.g. at the end of a row. AriaLabel names it. *@<AstrolDropdown AriaLabel="Row actions"> <AstrolDropdownItem Text="View" Icon="astrol-eye" OnClick="View" /> <AstrolDropdownItem Text="Send email" Icon="astrol-mail" Href="mailto:juan@example.com" /> <AstrolDropdownSeparator Title="Danger zone" /> <AstrolDropdownItem Text="Delete" Icon="astrol-trash" Danger="true" OnClick="Delete" /></AstrolDropdown>AstrolDropdown
AstrolDropdownItem
AstrolDropdownSeparator: line between groups; with Title, also a group title.