ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
33 lines (32 loc) • 1.24 kB
TypeScript
import { RanElement } from '@/utils/index';
export declare class CustomMessage extends RanElement {
_info: HTMLDivElement;
_notice: HTMLDivElement;
_content: HTMLDivElement;
_icon?: HTMLElement;
_span: HTMLSpanElement;
_shadowDom: ShadowRoot;
timeId?: NodeJS.Timeout;
close?: () => void;
static get observedAttributes(): string[];
constructor();
connectedCallback(): void;
get type(): string | null;
set type(value: string | null);
get content(): string | null;
set content(value: string | null);
get sheet(): string;
set sheet(value: string);
handlerExternalCss: () => void;
setA11yRole: (value: string | null) => void;
setIcon: (value: string) => void;
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
}
declare const message: {
info: (options: Ran.Prompt | string | undefined | null) => void;
success: (options: Ran.Prompt | string | undefined | null) => void;
error: (options: Ran.Prompt | string | undefined | null) => void;
warning: (options: Ran.Prompt | string | undefined | null) => void;
toast: (options: Ran.Prompt | string | undefined | null) => void;
} | null;
export default message;