UNPKG

pyro

Version:
35 lines (34 loc) 935 B
import { LitElement } from 'lit'; /** * List item element, used as child of `pyro-list` * [docs](https://pyrojs.com/el/list) * * ```html * <pyro-list-item>asd</pyro-list-item> * ``` * * @tag pyro-list-item * * @slot - Label * @slot prefix - Prefix, before label * @slot suffix - Suffix, after label * * @cssprop [--pyro-list-item-text-color=var(--pyro-text-color)] - `color` * @cssprop [--pyro-list-item-spacing=var(--pyro-spacing)] - `padding` */ export declare class PyroListItem extends LitElement { static styles: import('lit').CSSResult; handleClick: (e: Event) => void; /** Label/text, overriden by default slot */ label: string; /** Selected */ selected: boolean; /** Function activating on click */ callback?: () => void; render(): import('lit-html').TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'pyro-list-item': PyroListItem; } }