mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-26 13:47:25 +01:00
Todo: 3a5477b9 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
683 B
TypeScript
27 lines
683 B
TypeScript
/** `<kuhy-credit>`: the shared "Created by kuhy" logo credit. */
|
|
export declare class KuhyCredit extends HTMLElement {
|
|
/** True while the panel is showing. */
|
|
readonly open: boolean;
|
|
/** Hide the panel. */
|
|
close(): void;
|
|
}
|
|
|
|
/** Attributes the element reads. */
|
|
export interface KuhyCreditAttributes {
|
|
align?: "end" | "start";
|
|
placement?: "above" | "below";
|
|
theme?: "dark" | "light";
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"kuhy-credit": KuhyCredit;
|
|
}
|
|
// React 19 / Vite: <kuhy-credit /> in JSX.
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
"kuhy-credit": KuhyCreditAttributes & { class?: string; className?: string };
|
|
}
|
|
}
|
|
}
|