UNPKG

@material/web

Version:
32 lines 1.02 kB
/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { __decorate } from "tslib"; import { customElement } from 'lit/decorators.js'; import { MenuItemEl } from './internal/menuitem/menu-item.js'; import { styles } from './internal/menuitem/menu-item-styles.js'; /** * @summary Menus display a list of choices on a temporary surface. * * @description * Menu items are the selectable choices within the menu. Menu items must * implement the `MenuItem` interface and also have the `md-menu-item` * attribute. Additionally menu items are list items so they must also have the * `md-list-item` attribute. * * Menu items can control a menu by selectively firing the `close-menu` and * `deselect-items` events. * * @final * @suppress {visibility} */ let MdMenuItem = class MdMenuItem extends MenuItemEl { }; MdMenuItem.styles = [styles]; MdMenuItem = __decorate([ customElement('md-menu-item') ], MdMenuItem); export { MdMenuItem }; //# sourceMappingURL=menu-item.js.map