@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
16 lines (15 loc) • 622 B
TypeScript
import "../animation/fade.css";
import { useBooleanState } from "./useBooleanState";
export declare const DialogCtx: {
use<D = DialogExpose>(): D;
id: symbol;
Provider: import("solid-js").ContextProviderComponent<DialogExpose | undefined>;
defaultValue: DialogExpose | undefined;
};
export interface DialogExpose extends ReturnType<typeof useBooleanState> {
}
export interface DialogProps {
id?: string;
beforeClose?: () => Promise<void> | void;
}
export declare const Dialog: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<DialogProps, HTMLDivElement, boolean>>;