UNPKG

@puzzleitc/puzzle-shell

Version:

The standard design for Puzzle tools

30 lines (29 loc) 997 B
import { LitElement } from "lit"; /** * Dropdown menu item with icon and text. * * @slot - Slot for the icon and the text */ export declare class MenuDropdownItem extends LitElement { href: string; static styles: import("lit").CSSResult[]; focus(options?: FocusOptions): void; updated(): void; render(): import("lit-html").TemplateResult<1>; /** * Copy attributes on the host element to the link element, such * that applications can use additional link attributes. * * Notice that, apart from the `href` attribute, these attributes * are only applied initially (resp. if the compoenent rerenders, * which is not the case if a property changes). So it is perfect * for "static" attributes that never change, but it won't work for * "dynamic" attributes that can change. */ private applyHostAttributes; } declare global { interface HTMLElementTagNameMap { "pzsh-menu-dropdown-item": MenuDropdownItem; } }