Popup Menu Item
Popup Menu Item is used to add items to menus created with Popup Menu
| || ||Adds accessible label for the button or link that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.|| || |
| || ||Is the item currently active (e.g. selected)|| || |
| || ||Forces URL to open in a new browser tab. Used together with URL prop.|| || |
| || ||Left icon.|| || |
| || ||Theme.|| || |
| || ||Right icon.|| || |
| || ||Short text to display after the label, e.g. keyboard shortcut.|| || |
| || ||A destination to link to, rendered in the href attribute of a link.|| || |
| || ||Value|| || |
| ||Emitted when the item loses focus.|| |
| ||Emitted when the item receives focus.|| |
isFocused() => Promise<boolean> #
setFocus(options?: FocusOptions) => Promise<void> #
Sets focus. Use this method instead of the global focus().
This section includes guidelines for designers and developers about the usage of this component in different contexts.
When to use #
- When you want to add items to a Popup Menu.
When not to use #
- If you are not using Popup Menu.
This component has been validated to meet the WCAG 2.1 AA accessibility guidelines. You can find additional information regarding accessibility of this component below.
- Underlying component has
menuitemrole which marks the component as a menuitem for screen readers.
- It can be activated with keyboard.
Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:
Using CLI ToolsTutorials
Creating Custom PatternsTutorials
Server Side RenderingTutorials
Usage With Markdown
If you experience any issues while using a component, please head over to the Support page for more guidelines and help.