UNPKG

@puzzleitc/puzzle-shell

Version:

The standard design for Puzzle tools

31 lines (30 loc) 1.04 kB
import { LitElement } from "lit"; /** * Menu action with icon and text, will be render in the menu on * mobile or in the topbar otherwise. * * @slot - Slot for the icon and the text */ export declare class MenuAction 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-action": MenuAction; } }