UNPKG

@puzzleitc/puzzle-shell

Version:

The standard design for Puzzle tools

28 lines (27 loc) 924 B
import { LitElement } from "lit"; import "./Icon"; /** * Menu dropdown with icon and text, will be rendered as a dropdown * menu in the topbar on desktop, or with all items visible in the * hamburger menu on mobile. * * @slot toggle - Slot for the icon and the text of the toggle button * @slot items - Slot for dropdown menu items */ export declare class MenuDropdown extends LitElement { open: boolean; static styles: import("lit").CSSResult[]; constructor(); connectedCallback(): void; disconnectedCallback(): void; handleEvent(e: MouseEvent | KeyboardEvent): void; handleMenuClose(e: MouseEvent | KeyboardEvent): void; handleMenuNavigation(e: MouseEvent | KeyboardEvent): void; toggleMenu(event?: MouseEvent): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "pzsh-menu-dropdown": MenuDropdown; } }