A list of actions in a dropdown, enhanced with keyboard navigation.
Anatomy
Import the primitives and assemble the parts:
@using Blazix.Primitives
<MenuFilterProvider>
<MenuRoot>
<MenuTrigger />
<MenuPortal>
<MenuBackdrop />
<MenuPositioner>
<MenuPopup>
<MenuArrow />
<MenuInput />
<MenuClear />
<MenuEmpty />
<MenuList>
<MenuItem />
<MenuLinkItem />
<MenuSeparator />
<MenuSubmenuRoot>
<MenuSubmenuTrigger />
</MenuSubmenuRoot>
<MenuGroup>
<MenuGroupLabel />
</MenuGroup>
<MenuRadioGroup>
<MenuGroupLabel />
<MenuRadioItem>
<MenuRadioItemIndicator />
</MenuRadioItem>
</MenuRadioGroup>
<MenuCheckboxItem>
<MenuCheckboxItemIndicator />
</MenuCheckboxItem>
</MenuList>
<MenuViewport />
</MenuPopup>
</MenuPositioner>
</MenuPortal>
</MenuRoot>
</MenuFilterProvider>API Reference
MenuRoot
Doesn't render its own HTML element.
MenuTrigger
Renders a <button> element.
Other attributes are passed to the element it renders.
MenuInput
Renders a <input> element.
Other attributes are passed to the element it renders.
MenuClear
Renders a <button> element.
Other attributes are passed to the element it renders.
MenuList
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuPortal
Doesn't render its own HTML element.
MenuBackdrop
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuPositioner
Doesn't render its own HTML element.
MenuPopup
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuArrow
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuItem
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuViewport
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuGroup
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuGroupLabel
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuSeparator
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuEmpty
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuSubmenuRoot
Doesn't render its own HTML element.
MenuSubmenuTrigger
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuRadioGroup
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuRadioItem
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuRadioItemIndicator
Renders a <span> element.
Other attributes are passed to the element it renders.
MenuCheckboxItem
Renders a <div> element.
Other attributes are passed to the element it renders.
MenuCheckboxItemIndicator
Renders a <span> element.
Other attributes are passed to the element it renders.
MenuFilterProvider
Doesn't render its own HTML element.
MenuHandle
MenuLinkItem
Renders a <a> element.
Other attributes are passed to the element it renders.