@gechiui/components
Version:
UI components for GeChiUI.
20 lines • 659 B
TypeScript
/**
* External dependencies
*/
import type { MouseEvent, KeyboardEvent, ReactNode } from 'react';
export declare type DialogInputEvent = KeyboardEvent<HTMLDivElement> | MouseEvent<HTMLButtonElement>;
declare type BaseProps = {
children: ReactNode;
onConfirm: (event: DialogInputEvent) => void;
};
declare type ControlledProps = BaseProps & {
onCancel: (event: DialogInputEvent) => void;
isOpen: boolean;
};
declare type UncontrolledProps = BaseProps & {
onCancel?: (event: DialogInputEvent) => void;
isOpen?: never;
};
export declare type OwnProps = ControlledProps | UncontrolledProps;
export {};
//# sourceMappingURL=types.d.ts.map