ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
25 lines (24 loc) • 924 B
TypeScript
import { RanElement } from '@/utils/index';
export declare class Card extends RanElement {
_shadowDom: ShadowRoot;
_titleEl: HTMLElement;
_descriptionEl: HTMLElement;
_headerEl: HTMLElement;
_footerEl: HTMLElement;
static get observedAttributes(): string[];
constructor();
get title(): string;
set title(value: string);
get description(): string;
set description(value: string);
get sheet(): string;
set sheet(value: string);
/** Interactive card (Geist): hover darkens the border and lifts to the elevated shadow tier. Purely presentational — gate it to cards that are actually clickable. */
get hoverable(): boolean;
set hoverable(value: boolean);
private _syncTitle;
private _syncDescription;
connectedCallback(): void;
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
}
export default Card;