UNPKG

@umbraco-ui/uui-ref

Version:

Umbraco UI ref component

45 lines (44 loc) 1.64 kB
import { LitElement } from 'lit'; declare const UUIRefElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectOnlyMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectableMixinInterface) & typeof LitElement; /** * @element uui-ref * @fires {UUIRefEvent} open - fires when the ref is opened * @fires {UUISelectableEvent} selected - fires when the ref is selected * @fires {UUISelectableEvent} deselected - fires when the ref is deselected * @description - Base ref component to be extended by specific ref elements. Does not have a tag. * @attr {boolean} [disabled=false] - Set to true to disable * @attr {boolean} [error=false] - Set to true to display error state * @attr {boolean} [standalone=false] - Set to true to make element stand out */ export declare class UUIRefElement extends UUIRefElement_base { /** * Set tot true to disable * @type {boolean} * @attr * @default false */ disabled: boolean; /** * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content. * @type {boolean} * @attr * @default false */ readonly: boolean; /** * Set to true to display error state * @type {boolean} * @attr * @default false */ error: boolean; protected handleOpenClick(e: Event): void; protected handleOpenKeydown(e: KeyboardEvent): void; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'uui-ref': UUIRefElement; } } export {};